more escaping
This commit is contained in:
parent
7a7cad55b8
commit
705cba7d44
@ -78,10 +78,10 @@ RUN \\
|
||||
"set -e" \\
|
||||
"id" \\
|
||||
"mkdir -p /factorio \${SAVES} \${CONFIG} \${MODS} \${SCENARIOS} \${SCRIPT_OUTPUT}" \\
|
||||
"[ ! -f \"\${CONFIG}/rconpw\" ] && printf '%s' \"\$(pwgen 15 1)\" > \${CONFIG}/rconpw" \\
|
||||
"[ ! -f \"\${CONFIG}/server-settings.json\" ] && cp /opt/factorio/data/server-settings.example.json \${CONFIG}/server-settings.json" \\
|
||||
"[ ! -f \"\${CONFIG}/map-gen-settings.json\" ] && cp /opt/factorio/data/map-gen-settings.example.json \${CONFIG}/map-gen-settings.json" \\
|
||||
"[ ! -f \"\${CONFIG}/map-settings.json\" ] && cp /opt/factorio/data/map-settings.example.json \${CONFIG}/map-settings.json" \\
|
||||
"[ ! -f \\\"\${CONFIG}/rconpw\\\" ] && printf '%s' \"\$(pwgen 15 1)\" > \${CONFIG}/rconpw" \\
|
||||
"[ ! -f \\\"\${CONFIG}/server-settings.json\\\" ] && cp /opt/factorio/data/server-settings.example.json \${CONFIG}/server-settings.json" \\
|
||||
"[ ! -f \\\"\${CONFIG}/map-gen-settings.json\\\" ] && cp /opt/factorio/data/map-gen-settings.example.json \${CONFIG}/map-gen-settings.json" \\
|
||||
"[ ! -f \\\"\${CONFIG}/map-settings.json\\\" ] && cp /opt/factorio/data/map-settings.example.json \${CONFIG}/map-settings.json" \\
|
||||
"find -L \${SAVES} -iname \\*.tmp.zip -mindepth 1 -print | grep -q .; then rm -f \${SAVES}/*.tmp.zip" \\
|
||||
"if ! find -L \${SAVES} -iname \\*.tmp.zip -mindepth 1 -print | grep -q .; then" \\
|
||||
" /opt/factorio/bin/x64/factorio \\\" \\
|
||||
@ -98,7 +98,7 @@ RUN \\
|
||||
" --server-whitelist \${CONFIG}/server-whitelist.json \\\" \\
|
||||
" --use-server-whitelist \\\" \\
|
||||
" --server-adminlist \${CONFIG}/server-adminlist.json \\\" \\
|
||||
" --rcon-password \"\$(cat \${CONFIG}/rconpw)\" \\\" \\
|
||||
" --rcon-password \\\"\$(cat \${CONFIG}/rconpw)\\\" \\\" \\
|
||||
" --server-id /factorio/config/server-id.json \\\" \\
|
||||
" \${@}" > start-server.sh && \\
|
||||
chmod +x ./start-server.sh
|
||||
|
Reference in New Issue
Block a user