Fix Scripts
This commit is contained in:
parent
6ebdb49df0
commit
d098e67ee2
5
debian/client/common/usr/bin/minecraft-pi
vendored
5
debian/client/common/usr/bin/minecraft-pi
vendored
@ -11,12 +11,9 @@ export MCPI_FEATURES
|
|||||||
export MCPI_USERNAME
|
export MCPI_USERNAME
|
||||||
|
|
||||||
# Ensure Groups Are Correct
|
# 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)"
|
pkexec usermod -aG docker "$(whoami)"
|
||||||
fi
|
fi
|
||||||
exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Allow X11 Connections From Root
|
# Allow X11 Connections From Root
|
||||||
xhost local:root
|
xhost local: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...'
|
(${DOCKER_COMPOSE} pull || :) | zenity --class 'Minecraft - Pi edition' --progress --pulsate --no-cancel --auto-close --text 'Updating Minecraft...'
|
||||||
|
|
||||||
# Run
|
# 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