This commit is contained in:
Hyatt 2019-10-30 21:24:18 -05:00
parent 67f7b18ea7
commit eee14a7fc2
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -82,6 +82,13 @@ RUN \\
"[ ! -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 \\" \\
" --create \${SAVES}/_autosave1.zip \\" \\
" --map-gen-settings \${CONFIG}/map-gen-settings.json \\" \\
" --map-settings \${CONFIG}/map-settings.json" \\
"fi" \\
"""