From 04dbe1da5198b3d197843dda896bbab78410ea34 Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 30 Oct 2023 08:50:56 +0100 Subject: [PATCH] Fixed Issues --- .gitattributes | 13 +++++++++++++ server-hosting/scripts/install.sh | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1b1aece --- /dev/null +++ b/.gitattributes @@ -0,0 +1,13 @@ +# +# Configure line ending normalisation for this repository. +# See http://schacon.github.io/git/gitattributes.html for more information. +# +# Also each developer should configure the old style normalisation on her workstation +# (see http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/): +# +# Windows user should use: git config --global core.autocrlf = true +# Unix/Linux users should use: git config --global core.autocrlf = input + +# Auto detect text files and perform LF normalization +# Shell scripts require LF +*.sh text eol=lf diff --git a/server-hosting/scripts/install.sh b/server-hosting/scripts/install.sh index 33b3718..9a8c404 100644 --- a/server-hosting/scripts/install.sh +++ b/server-hosting/scripts/install.sh @@ -37,13 +37,13 @@ After=syslog.target network.target nss-lookup.target network-online.target [Service] Environment="LD_LIBRARY_PATH=./linux64" ExecStartPre=$STEAM_INSTALL_SCRIPT -ExecStart=/home/ubuntu/.steam/steamapps/common/SatisfactoryDedicatedServer/FactoryServer.sh +ExecStart=/home/ubuntu/.steam/SteamApps/common/SatisfactoryDedicatedServer/FactoryServer.sh User=ubuntu Group=ubuntu StandardOutput=journal Restart=on-failure KillSignal=SIGINT -WorkingDirectory=/home/ubuntu/.steam/steamapps/common/SatisfactoryDedicatedServer +WorkingDirectory=/home/ubuntu/.steam/SteamApps/common/SatisfactoryDedicatedServer [Install] WantedBy=multi-user.target @@ -104,4 +104,4 @@ systemctl enable auto-shutdown systemctl start auto-shutdown # automated backups to s3 every 5 minutes -su - ubuntu -c "crontab -l -e ubuntu | { cat; echo \"*/5 * * * * /usr/local/bin/aws s3 sync /home/ubuntu/.config/Epic/FactoryGame/Saved/SaveGames/server s3://$S3_SAVE_BUCKET\"; } | crontab -" +su - ubuntu -c "crontab -u ubuntu -l | { cat; echo \"*/5 * * * * /usr/local/bin/aws s3 sync /home/ubuntu/.config/Epic/FactoryGame/Saved/SaveGames/server s3://$S3_SAVE_BUCKET\"; } | crontab -"