Rearrange Script

This commit is contained in:
TheBrokenRail 2021-03-07 13:56:27 -05:00
parent 352c9de936
commit e252afbe22

View File

@ -2,11 +2,6 @@
set -e set -e
# Esnure User Is In docker Group
if ! id -nGz | grep -qzxF 'docker'; then
pkexec /usr/sbin/usermod -aG docker "$(id -un)"
fi
# All Feature Flags # All Feature Flags
export AVAILABLE_FEATURES="$(tr '\n' ' ' < /usr/share/minecraft-pi/client/features)" export AVAILABLE_FEATURES="$(tr '\n' ' ' < /usr/share/minecraft-pi/client/features)"
@ -16,6 +11,11 @@ if [ "$1" = "--print-features" ]; then
exit 0 exit 0
fi fi
# Esnure User Is In docker Group
if ! id -nGz | grep -qzxF 'docker'; then
pkexec /usr/sbin/usermod -aG docker "$(id -un)"
fi
# Export Important Variables # Export Important Variables
export ZENITY_CLASS='Minecraft - Pi edition' export ZENITY_CLASS='Minecraft - Pi edition'
export DOCKER_COMPOSE_YML="/usr/share/minecraft-pi/client/docker-compose.yml" export DOCKER_COMPOSE_YML="/usr/share/minecraft-pi/client/docker-compose.yml"