Last active
December 20, 2021 18:23
-
-
Save gekkedev/842ebeecd1607854d265cb6d77e99f1c to your computer and use it in GitHub Desktop.
Factorio server installer/updater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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