docker-minecraft-server/minecraft-server/start.sh
2015-11-30 20:56:25 -06:00

12 lines
237 B
Bash
Executable file

#!/bin/sh
set -e
usermod --uid $UID minecraft
chown -R minecraft /data /start-minecraft
while lsof -- /start-minecraft; do
echo -n "."
sleep 1
done
echo "...switching to user 'minecraft'"
exec sudo -E -u minecraft /start-minecraft