docker-minecraft-server/minecraft-server/start

14 lines
245 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ $(id -u) = 0 ]; then
if [[ -v UID ]]; then
usermod -u $UID minecraft
fi
if [[ -v GID ]]; then
groupmod -g $GID minecraft
fi
su-exec minecraft:minecraft /start-configuration
else
exec /start-configuration
fi