Update Infern's Factorio Server/start_server.sh
This commit is contained in:
parent
86f77f0103
commit
877b34563e
1 changed files with 6 additions and 6 deletions
|
@ -1,22 +1,22 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd /var/lib/Factorio # You'll want to change this path to wherever you're running the Factorio server from.
|
|
||||||
|
|
||||||
save_name="default" # Set this to the name of your save file.
|
save_name="default" # Set this to the name of your save file.
|
||||||
|
|
||||||
# Don't change this unless you know what you're doing.
|
# Don't change this unless you know what you're doing.
|
||||||
# Set this to the custom parameters you want the --create command to use.
|
# Set this to the custom parameters you want the --create command to use.
|
||||||
extra_params_create="--map-gen-settings ./data/map-gen-settings.json --map-settings ./data/map-settings.json"
|
extra_params_create=""
|
||||||
|
|
||||||
# Don't change this unless you know what you're doing.
|
# Don't change this unless you know what you're doing.
|
||||||
# Set this to the custom parameters you want the --start_server command to use.
|
# Set this to the custom parameters you want the --start_server command to use.
|
||||||
extra_params_start_server="--server-settings ./data/server-settings.json"
|
extra_params_start_server=""
|
||||||
|
|
||||||
|
# Retrieves the script's directory and cd's into it.
|
||||||
|
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
||||||
|
cd ${script_dir}
|
||||||
|
|
||||||
# This handles automatically updating the Factorio binary.
|
# This handles automatically updating the Factorio binary.
|
||||||
wget https://factorio.com/get-download/stable/headless/linux64 -O factorio_headless.tar.xz
|
wget https://factorio.com/get-download/stable/headless/linux64 -O factorio_headless.tar.xz
|
||||||
|
|
||||||
tar -xf factorio_headless.tar.xz --strip-components=1 --overwrite
|
tar -xf factorio_headless.tar.xz --strip-components=1 --overwrite
|
||||||
|
|
||||||
rm -f factorio_headless.tar.xz
|
rm -f factorio_headless.tar.xz
|
||||||
|
|
||||||
# This checks if the ./saves/$save_name.zip save file exists or not...
|
# This checks if the ./saves/$save_name.zip save file exists or not...
|
||||||
|
|
Loading…
Reference in a new issue