-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
138 additions
and
369 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
#!/bin/bash | ||
mkdir -p /home/sfserver/serverfiles/FactoryGame | ||
free=`df -k --output=avail /home/sfserver/serverfiles/FactoryGame | tail -n1` # df -k not df -h | ||
free=$(df -k --output=avail /home/sfserver/serverfiles/FactoryGame | tail -n1) # df -k not df -h | ||
freeGB=$(expr $free / 1024 / 1024) | ||
if [[ $free -lt 12582912 ]]; then # 12G = 12*1024*1024k | ||
space=no | ||
fi | ||
|
||
if [ "${space,,}" == 'no' ]; then | ||
echo "[ERROR] | ||
======================================================================= | ||
Not enough space. | ||
Needed: 12 GB | ||
Available: $freeGB GB | ||
======================================================================= | ||
" | ||
exit | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#!/bin/bash | ||
|
||
echo " | ||
======================================================================= | ||
IMPORTANT: | ||
START_MODE $START_MODE UNKNOWN | ||
Stopping container... | ||
Check your START_MODE, the number must be between 1 and 6 | ||
More info: https://github.com/vinanrra/Docker-Satisfactory#start-modes | ||
======================================================================= | ||
" | ||
echo "[ERROR] | ||
======================================================================= | ||
START_MODE $START_MODE UNKNOWN | ||
Stopping container... | ||
Check your START_MODE, the number must be between 1 and 4 | ||
More info: https://github.com/vinanrra/Docker-Satisfactory#start-modes | ||
======================================================================= | ||
" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
#!/bin/bash | ||
echo "0 5 * * * /home/sfserver/sfserver backup > /dev/null 2>&1" >> crontab.txt | ||
|
||
echo " | ||
======================================================================= | ||
IMPORTANT: | ||
Activated automatic backup at 5AM | ||
======================================================================= | ||
" | ||
echo "[INFO] Activated automatic backup" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
#!/bin/bash | ||
echo "*/5 * * * * /home/sfserver/sfserver monitor > /dev/null 2>&1" >> crontab.txt | ||
|
||
echo " | ||
======================================================================= | ||
IMPORTANT: | ||
Activated server monitoring, automatic restart if crash | ||
======================================================================= | ||
" | ||
echo "[INFO] Activated server monitoring, automatic restart if crash" |
Oops, something went wrong.