diff --git a/0.16/files/scenario.sh b/0.16/files/scenario.sh index 634c6bf..d10b91c 100755 --- a/0.16/files/scenario.sh +++ b/0.16/files/scenario.sh @@ -2,7 +2,7 @@ if [ -z "$1" ]; then echo "No argument supplied" fi -SCENARIO=$1 +SERVER_SCENARIO=$1 set -euo pipefail @@ -11,7 +11,7 @@ id mkdir -p "$SAVES" mkdir -p "$CONFIG" mkdir -p "$MODS" -mkdir -p "$SCENARIO" +mkdir -p "$SCENARIOS" #chown -R factorio /factorio @@ -33,7 +33,7 @@ fi exec /opt/factorio/bin/x64/factorio \ --port "$PORT" \ - --start-server-load-scenario "$SCENARIO" \ + --start-server-load-scenario "$SERVER_SCENARIO" \ --server-settings "$CONFIG/server-settings.json" \ --server-whitelist "$CONFIG/server-whitelist.json" \ --server-banlist "$CONFIG/server-banlist.json" \ diff --git a/0.16/files/scenario2map.sh b/0.16/files/scenario2map.sh index 8260276..30d96af 100755 --- a/0.16/files/scenario2map.sh +++ b/0.16/files/scenario2map.sh @@ -2,7 +2,7 @@ if [ -z "$1" ]; then echo "No argument supplied" fi -SCENARIO=$1 +SERVER_SCENARIO=$1 set -euo pipefail @@ -11,7 +11,7 @@ id mkdir -p "$SAVES" mkdir -p "$CONFIG" mkdir -p "$MODS" -mkdir -p "$SCENARIO" +mkdir -p "$SCENARIOS" if [ ! -f "$CONFIG/server-settings.json" ]; then cp /opt/factorio/data/server-settings.example.json "$CONFIG/server-settings.json" @@ -26,4 +26,4 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then fi exec /opt/factorio/bin/x64/factorio \ - --scenario2map "$SCENARIO" + --scenario2map "$SERVER_SCENARIO" diff --git a/0.17/files/scenario.sh b/0.17/files/scenario.sh index c8cfe58..5b4b32c 100755 --- a/0.17/files/scenario.sh +++ b/0.17/files/scenario.sh @@ -2,7 +2,7 @@ if [ -z "$1" ]; then echo "No argument supplied" fi -SCENARIO="$1" +SERVER_SCENARIO="$1" set -euo pipefail @@ -11,7 +11,7 @@ id mkdir -p "$SAVES" mkdir -p "$CONFIG" mkdir -p "$MODS" -mkdir -p "$SCENARIO" +mkdir -p "$SCENARIOS" #chown -R factorio /factorio @@ -33,7 +33,7 @@ fi exec /opt/factorio/bin/x64/factorio \ --port "$PORT" \ - --start-server-load-scenario "$SCENARIO" \ + --start-server-load-scenario "$SERVER_SCENARIO" \ --server-settings "$CONFIG/server-settings.json" \ --server-whitelist "$CONFIG/server-whitelist.json" \ --server-banlist "$CONFIG/server-banlist.json" \ diff --git a/0.17/files/scenario2map.sh b/0.17/files/scenario2map.sh index 63b09d5..57a3d62 100755 --- a/0.17/files/scenario2map.sh +++ b/0.17/files/scenario2map.sh @@ -2,7 +2,7 @@ if [ -z "$1" ]; then echo "No argument supplied" fi -SCENARIO="$1" +SERVER_SCENARIO="$1" set -euo pipefail @@ -11,7 +11,7 @@ id mkdir -p "$SAVES" mkdir -p "$CONFIG" mkdir -p "$MODS" -mkdir -p "$SCENARIO" +mkdir -p "$SCENARIOS" if [ ! -f "$CONFIG/server-settings.json" ]; then cp /opt/factorio/data/server-settings.example.json "$CONFIG/server-settings.json" @@ -26,4 +26,4 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then fi exec /opt/factorio/bin/x64/factorio \ - --scenario2map "$SCENARIO" + --scenario2map "$SERVER_SCENARIO"