From e8be7685e9161040cb64206e071e0370f0a012ee Mon Sep 17 00:00:00 2001 From: Maxim Ivanov Date: Thu, 27 Sep 2018 10:27:50 +0300 Subject: [PATCH] mc: set umask to 0002 and chmod g+w the /data folder Do this to allow write access for groups that the minecraft user is in. This commit also fixes an issue if a group is specified with $GID and it has no write access in the mounted host volume. --- minecraft-server/start | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minecraft-server/start b/minecraft-server/start index 8a1001c1..562f612c 100755 --- a/minecraft-server/start +++ b/minecraft-server/start @@ -1,5 +1,8 @@ #!/bin/bash +umask 0002 +chmod g+w /data + if [ $(id -u) = 0 ]; then if [[ -v UID && $UID != $(id -u) ]]; then usermod -u $UID minecraft