Rearrange Script
This commit is contained in:
parent
352c9de936
commit
e252afbe22
10
debian/client/common/usr/bin/minecraft-pi
vendored
10
debian/client/common/usr/bin/minecraft-pi
vendored
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user