mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 05:42:28 +00:00
Fixing #21 by using sudo instead of su
This commit is contained in:
parent
6f62af7d85
commit
8594054047
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue