From d098e67ee279c842ff1c3cca46df174b263d4351 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 17 Oct 2020 16:23:01 -0400 Subject: [PATCH] Fix Scripts --- debian/client/common/usr/bin/minecraft-pi | 9 +++------ debian/client/native/usr/lib/minecraft-pi/run.sh | 0 debian/client/virgl/usr/lib/minecraft-pi/run.sh | 0 3 files changed, 3 insertions(+), 6 deletions(-) mode change 100644 => 100755 debian/client/native/usr/lib/minecraft-pi/run.sh mode change 100644 => 100755 debian/client/virgl/usr/lib/minecraft-pi/run.sh diff --git a/debian/client/common/usr/bin/minecraft-pi b/debian/client/common/usr/bin/minecraft-pi index faa768c24..6ce02bce3 100755 --- a/debian/client/common/usr/bin/minecraft-pi +++ b/debian/client/common/usr/bin/minecraft-pi @@ -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 - pkexec usermod -aG docker "$(whoami)" - fi - exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\"" +if ! id -Gn "$(whoami)" | grep '\bdocker\b' > /dev/null; then + pkexec usermod -aG docker "$(whoami)" 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 \ No newline at end of file diff --git a/debian/client/native/usr/lib/minecraft-pi/run.sh b/debian/client/native/usr/lib/minecraft-pi/run.sh old mode 100644 new mode 100755 diff --git a/debian/client/virgl/usr/lib/minecraft-pi/run.sh b/debian/client/virgl/usr/lib/minecraft-pi/run.sh old mode 100644 new mode 100755