2020-09-25 23:37:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-10-01 18:33:52 +00:00
|
|
|
FEATURES="$(zenity --class minecraft-pi --list --checklist --column 'Enabled' --column 'Feature' FALSE 'Touch GUI' FALSE 'Survival Mode' FALSE 'Fix Bow & Arrow' FALSE 'Fix Attacking' FALSE 'Mob Spawning')"
|
|
|
|
export FEATURES
|
2020-10-01 15:08:46 +00:00
|
|
|
|
2020-09-25 23:37:22 +00:00
|
|
|
virgl_test_server &
|
|
|
|
PID="$!"
|
|
|
|
|
2020-10-01 18:33:52 +00:00
|
|
|
if ! id -Gn "$(whoami)" | grep '\bdocker\b' > /dev/null; then
|
|
|
|
pkexec adduser "$(whoami)" docker
|
|
|
|
fi
|
|
|
|
|
2020-09-25 23:37:22 +00:00
|
|
|
xhost local:root
|
|
|
|
|
|
|
|
DOCKER_COMPOSE="docker-compose -f /usr/share/minecraft-pi/docker-compose.yml"
|
|
|
|
|
|
|
|
${DOCKER_COMPOSE} up
|
|
|
|
${DOCKER_COMPOSE} down
|
|
|
|
|
|
|
|
kill "${PID}"
|