mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
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.
This commit is contained in:
parent
2d6316e6c3
commit
e8be7685e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user