mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-05 15:03:17 +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:
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
umask 0002
|
||||||
|
chmod g+w /data
|
||||||
|
|
||||||
if [ $(id -u) = 0 ]; then
|
if [ $(id -u) = 0 ]; then
|
||||||
if [[ -v UID && $UID != $(id -u) ]]; then
|
if [[ -v UID && $UID != $(id -u) ]]; then
|
||||||
usermod -u $UID minecraft
|
usermod -u $UID minecraft
|
||||||
|
|||||||
Reference in New Issue
Block a user