[mc] Properly quote parameters passed into entry point

This commit is contained in:
Geoff Bourne 2016-05-30 11:41:03 -05:00
parent 0defd266a6
commit c806c425fd
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 "$@"