From 85940540474b8210fdc226a3af6e6a202be92398 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 28 Mar 2015 13:10:39 -0500 Subject: [PATCH] Fixing #21 by using sudo instead of su --- minecraft-server/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minecraft-server/start.sh b/minecraft-server/start.sh index 62644d28..47be882b 100755 --- a/minecraft-server/start.sh +++ b/minecraft-server/start.sh @@ -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 +