From ed08899f9ea4e39e4fbbc79556802b61e0c90c7c Mon Sep 17 00:00:00 2001 From: TheSp1der Date: Wed, 30 Oct 2019 21:18:45 -0500 Subject: [PATCH] . --- build-factario-container.jenkins | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/build-factario-container.jenkins b/build-factario-container.jenkins index 16d44d8..a936e6f 100644 --- a/build-factario-container.jenkins +++ b/build-factario-container.jenkins @@ -77,30 +77,7 @@ RUN \\ "#!/bin/sh -x" \\ "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" \\ - "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" \\ - "/opt/factorio/bin/x64/factorio \\" \\ - " --port \${PORT} \\" \\ - " --start-server-load-latest \\" \\ - " --server-settings \${CONFIG}/server-settings.json \\" \\ - " --server-banlist \${CONFIG}/server-banlist.json \\" \\ - " --rcon-port \${RCON_PORT} \\" \\ - " --server-whitelist \${CONFIG}/server-whitelist.json \\" \\ - " --use-server-whitelist \\" \\ - " --server-adminlist \${CONFIG}/server-adminlist.json \\" \\ - " --rcon-password \"\$(cat \${CONFIG}/rconpw)\" \\" \\ - " --server-id /factorio/config/server-id.json \\" \\ - " $@" + """ podTemplate(