Fix Scripts

This commit is contained in:
TheBrokenRail 2020-10-17 16:23:01 -04:00
parent 6ebdb49df0
commit d098e67ee2
3 changed files with 3 additions and 6 deletions

View File

@ -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
View File

0
debian/client/virgl/usr/lib/minecraft-pi/run.sh vendored Normal file → Executable file
View File