mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 22:02:28 +00:00
13 lines
265 B
Bash
Executable file
13 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
|