Skip to content

Instantly share code, notes, and snippets.

@gekkedev
Last active December 20, 2021 18:23
Show Gist options
  • Save gekkedev/842ebeecd1607854d265cb6d77e99f1c to your computer and use it in GitHub Desktop.
Save gekkedev/842ebeecd1607854d265cb6d77e99f1c to your computer and use it in GitHub Desktop.
Factorio server installer/updater
#navigate into the directory where you installed the game and run it with your game' folder name as first argument, e.g. "factorio":
#bash update_factorio.sh factorio
#cd /opt
if [[ $1 ]]
then
wget https://factorio.com/get-download/stable/headless/linux64 -O update.tar.$
mkdir -p $1
echo "Extracting, please wait..."
tar -xf update.tar.xz factorio -C $1
rm update.tar.xz
echo "Done."
else
echo "no installation path given (first argument)!"
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment