adds escapes
This commit is contained in:
parent
fa6bf6b241
commit
500c347a5c
@ -18,28 +18,28 @@ id
|
||||
[ ! -f "/data/config/map-gen-settings.json" ] && cp /opt/factorio/data/map-gen-settings.example.json /data/config/map-gen-settings.json
|
||||
[ ! -f "/data/config/map-settings.json" ] && cp /opt/factorio/data/map-settings.example.json /data/config/map-settings.json
|
||||
|
||||
if find -L /data/saves -iname \\*.tmp.zip -mindepth 1 -print | grep -q .; then
|
||||
if find -L /data/saves -iname \\\*.tmp.zip -mindepth 1 -print | grep -q .; then
|
||||
rm -f /data/saves/*.tmp.zip
|
||||
fi
|
||||
|
||||
if ! find -L /data/saves -iname \*.zip -mindepth 1 -print | grep -q .; then
|
||||
/opt/factorio/bin/x64/factorio \
|
||||
--create /data/saves/_autosave1.zip \
|
||||
--map-gen-settings /data/config/map-gen-settings.json \
|
||||
/opt/factorio/bin/x64/factorio \\
|
||||
--create /data/saves/_autosave1.zip \\
|
||||
--map-gen-settings /data/config/map-gen-settings.json \\
|
||||
--map-settings /data/config/map-settings.json
|
||||
fi
|
||||
|
||||
/opt/factorio/bin/x64/factorio \
|
||||
--port \${PORT} \
|
||||
--start-server-load-latest \
|
||||
--server-settings /data/config/server-settings.json \
|
||||
--server-banlist /data/config/server-banlist.json \
|
||||
--rcon-port \${RCON_PORT} \
|
||||
--server-whitelist /data/config/server-whitelist.json \
|
||||
--use-server-whitelist \
|
||||
--server-adminlist /data/config/server-adminlist.json \
|
||||
--rcon-password "\$(cat /data/config/rconpw)" \
|
||||
--server-id /factorio/config/server-id.json \
|
||||
/opt/factorio/bin/x64/factorio \\
|
||||
--port \${PORT} \\
|
||||
--start-server-load-latest \\
|
||||
--server-settings /data/config/server-settings.json \\
|
||||
--server-banlist /data/config/server-banlist.json \\
|
||||
--rcon-port \${RCON_PORT} \\
|
||||
--server-whitelist /data/config/server-whitelist.json \\
|
||||
--use-server-whitelist \\
|
||||
--server-adminlist /data/config/server-adminlist.json \\
|
||||
--rcon-password "\$(cat /data/config/rconpw)" \\
|
||||
--server-id /factorio/config/server-id.json \\
|
||||
\${@}
|
||||
"""
|
||||
|
||||
|
Reference in New Issue
Block a user