mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[mc] Properly quote parameters passed into entry point
This commit is contained in:
parent
0defd266a6
commit
c806c425fd
@ -398,9 +398,9 @@ fi
|
||||
# If we have a bootstrap.txt file... feed that in to the server stdin
|
||||
if [ -f /data/bootstrap.txt ];
|
||||
then
|
||||
exec java $JVM_OPTS -jar $SERVER $* < /data/bootstrap.txt
|
||||
exec java $JVM_OPTS -jar $SERVER "$@" < /data/bootstrap.txt
|
||||
else
|
||||
exec java $JVM_OPTS -jar $SERVER $*
|
||||
exec java $JVM_OPTS -jar $SERVER "$@"
|
||||
fi
|
||||
|
||||
exec java $JVM_OPTS -jar $SERVER
|
||||
|
@ -16,4 +16,4 @@ mkdir -p /home/minecraft
|
||||
chown minecraft: /home/minecraft
|
||||
|
||||
echo "Switching to user 'minecraft'"
|
||||
exec sudo -E -u minecraft /start-minecraft $*
|
||||
exec sudo -E -u minecraft /start-minecraft "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user