more escapes

This commit is contained in:
Hyatt 2019-10-30 21:56:15 -05:00
parent e93b25964a
commit d65c159156
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -78,7 +78,7 @@ RUN \\
"set -e" \\ "set -e" \\
"id" \\ "id" \\
"mkdir -p /factorio \${SAVES} \${CONFIG} \${MODS} \${SCENARIOS} \${SCRIPT_OUTPUT}" \\ "mkdir -p /factorio \${SAVES} \${CONFIG} \${MODS} \${SCENARIOS} \${SCRIPT_OUTPUT}" \\
"[ ! -f \\\"\${CONFIG}/rconpw\\\" ] && printf '%s' \"\\\\\$(pwgen 15 1)\" > \${CONFIG}/rconpw" \\ "[ ! -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}/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-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}/map-settings.json\\\" ] && cp /opt/factorio/data/map-settings.example.json \${CONFIG}/map-settings.json" \\
@ -98,7 +98,7 @@ RUN \\
" --server-whitelist \${CONFIG}/server-whitelist.json \\\\" \\ " --server-whitelist \${CONFIG}/server-whitelist.json \\\\" \\
" --use-server-whitelist \\\\" \\ " --use-server-whitelist \\\\" \\
" --server-adminlist \${CONFIG}/server-adminlist.json \\\\" \\ " --server-adminlist \${CONFIG}/server-adminlist.json \\\\" \\
" --rcon-password \\\"\\\\\$(cat \${CONFIG}/rconpw)\\\" \\\\" \\ " --rcon-password \\\"\\\\\\\$(cat \${CONFIG}/rconpw)\\\" \\\\" \\
" --server-id /factorio/config/server-id.json \\\\" \\ " --server-id /factorio/config/server-id.json \\\\" \\
" \${@}" " \${@}"
""" """