Remove version from docker compose, as it seems this is obsolete.

Get status from a different file, as the previous file's stats were changing, and therefore unreliable.
Add Namalsk maps to config.
This commit is contained in:
Daniel Ceregatti 2024-03-22 23:10:21 -07:00
parent 2754028504
commit 93f65760ac
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,3 @@
version: "3.3"
volumes: volumes:
# For steamcmd files and resource files used by the scripts # For steamcmd files and resource files used by the scripts
homedir_main: homedir_main:
@ -79,4 +77,4 @@ services:
# soft: -1 # soft: -1
# hard: -1 # hard: -1
env_file: env_file:
- .env - .env

View file

@ -90,5 +90,7 @@ class Missions
// template="empty.banov"; // Banov // template="empty.banov"; // Banov
// template="empty.deerisle"; // Deer Isle // template="empty.deerisle"; // Deer Isle
// template="serverMission.Pripyat"; // Pripyat // template="serverMission.Pripyat"; // Pripyat
// template="hardcore.namalsk"; // Hardcore Namalsk
// template="regular.namalsk"; // Regular Namalsk
}; };
}; };

View file

@ -530,7 +530,7 @@ status(){
then then
# Uptime # Uptime
D=$(date +%s) D=$(date +%s)
F=$(date +%s -r ${SERVER_PROFILE}/server_console.log) F=$(date +%s -r /tmp/parameters)
DAYS=$(( (${D} - ${F}) / 86400 )) DAYS=$(( (${D} - ${F}) / 86400 ))
UPTIME="${DAYS} days "$(date -d@$(($(date +%s) - $(date +%s -r /tmp/parameters))) -u +"%H hours %M minutes %S seconds") UPTIME="${DAYS} days "$(date -d@$(($(date +%s) - $(date +%s -r /tmp/parameters))) -u +"%H hours %M minutes %S seconds")