mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
14 lines
265 B
Bash
Executable File
14 lines
265 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $(id -u) = 0 ]; then
|
|
if [[ -v UID && $UID != $(id -u) ]]; 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
|