mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-01-18 23:13:53 +00:00
Merge pull request #253 from proudlytm/master
mc: set umask to 0002 and chmod g+w the /data folder
This commit is contained in:
commit
44d2081b7b
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue