diff --git a/minecraft-server/start b/minecraft-server/start index 51f0443c..cd7aa384 100755 --- a/minecraft-server/start +++ b/minecraft-server/start @@ -1,8 +1,9 @@ #!/bin/sh set -e -sed -i "/^minecraft/s/:1000:1000:/:${UID}:${GID}:/g" /etc/passwd -sed -i "/^minecraft/s/:1000:/:${GID}:/g" /etc/group +# Since Alpine doesn't have a usermod command we have to directly manipulate the passwd/group files :( +sed -i "/^minecraft/s/:1000:1000:/:${UID}:${GID}:/" /etc/passwd +sed -i "/^minecraft/s/:1000:/:${GID}:/" /etc/group if [ "$SKIP_OWNERSHIP_FIX" != "TRUE" ]; then fix_ownership() {