mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Fixing #21 by using sudo instead of su
This commit is contained in:
parent
6f62af7d85
commit
8594054047
@ -3,4 +3,6 @@
|
||||
set -e
|
||||
usermod --uid $UID minecraft
|
||||
chown -R minecraft /data /start-minecraft
|
||||
exec su -s /bin/bash -c /start-minecraft minecraft
|
||||
|
||||
exec sudo -E -u minecraft /start-minecraft
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user