Fix Scripts
This commit is contained in:
parent
6ebdb49df0
commit
d098e67ee2
7
debian/client/common/usr/bin/minecraft-pi
vendored
7
debian/client/common/usr/bin/minecraft-pi
vendored
@ -11,11 +11,8 @@ export MCPI_FEATURES
|
||||
export MCPI_USERNAME
|
||||
|
||||
# Ensure Groups Are Correct
|
||||
if [ -z "${MCPI_SUBSHELL}" ]; then
|
||||
if ! id -Gn "$(whoami)" | grep '\bdocker\b' > /dev/null; then
|
||||
if ! id -Gn "$(whoami)" | grep '\bdocker\b' > /dev/null; then
|
||||
pkexec usermod -aG docker "$(whoami)"
|
||||
fi
|
||||
exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\""
|
||||
fi
|
||||
|
||||
# Allow X11 Connections From Root
|
||||
@ -26,4 +23,4 @@ export DOCKER_COMPOSE="docker-compose -f /usr/share/minecraft-pi/client/docker-c
|
||||
(${DOCKER_COMPOSE} pull || :) | zenity --class 'Minecraft - Pi edition' --progress --pulsate --no-cancel --auto-close --text 'Updating Minecraft...'
|
||||
|
||||
# Run
|
||||
/usr/lib/minecraft-pi/run.sh
|
||||
exec sg docker /usr/lib/minecraft-pi/run.sh
|
0
debian/client/native/usr/lib/minecraft-pi/run.sh
vendored
Normal file → Executable file
0
debian/client/native/usr/lib/minecraft-pi/run.sh
vendored
Normal file → Executable file
0
debian/client/virgl/usr/lib/minecraft-pi/run.sh
vendored
Normal file → Executable file
0
debian/client/virgl/usr/lib/minecraft-pi/run.sh
vendored
Normal file → Executable file
Loading…
Reference in New Issue
Block a user