mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-09-13 08:03:28 +00:00
Make the version come from the central dz script.
This commit is contained in:
parent
c4498d4098
commit
4fc2013bd0
2 changed files with 0 additions and 29 deletions
|
@ -579,14 +579,6 @@ status(){
|
|||
RUNNING="${RUNNING}\nRunning parameters: ${green}$(cat /tmp/parameters)\nRunning mod parameter: $(cat /tmp/mod_command_line)${default}"
|
||||
RUNNING="${RUNNING}\nRunning server parameter: ${green}$(cat /tmp/server_command_line)${default}"
|
||||
fi
|
||||
# Release or Experimental
|
||||
if [[ ${release_client_appid} = "221100" ]]
|
||||
then
|
||||
RELEASE="Stable"
|
||||
else
|
||||
RELEASE="Experimental"
|
||||
fi
|
||||
VERSION="$(cat /serverfiles/version) - Release: ${RELEASE}"
|
||||
# Map
|
||||
MAP=${MAP}
|
||||
# Number of mods plus the list denoting on or off
|
||||
|
|
21
web/bin/dz
21
web/bin/dz
|
@ -204,7 +204,6 @@ install(){
|
|||
else
|
||||
printf "[ ${lightblue}DayZ${default} ] The server is already installed.\n"
|
||||
fi
|
||||
putVersion
|
||||
}
|
||||
|
||||
# Update the server files.
|
||||
|
@ -250,25 +249,6 @@ update(){
|
|||
printf "\tAvailable version: ${green}${availablebuild}${default}\n"
|
||||
printf "\thttps://steamdb.info/app/${release_server_appid}/\n\n"
|
||||
fi
|
||||
putVersion
|
||||
}
|
||||
|
||||
function putVersion() {
|
||||
# Put the version in a file for easy access
|
||||
BUILDID=$(grep buildid /serverfiles/steamapps/appmanifest_223350.acf | awk '{print $2}' | tr -d '"')
|
||||
# FIXME! Get the server version from the buildid...somehow
|
||||
echo "1.28.160123" > /serverfiles/version
|
||||
}
|
||||
|
||||
function getVersion() {
|
||||
VERSION=$(cat /serverfiles/version)
|
||||
if [[ ${release_client_appid} = "221100" ]]
|
||||
then
|
||||
RELEASE="Stable"
|
||||
else
|
||||
RELEASE="Experimental"
|
||||
fi
|
||||
echo "${VERSION} - Release: ${RELEASE}"
|
||||
}
|
||||
|
||||
# Update mods
|
||||
|
@ -291,7 +271,6 @@ status(){
|
|||
if [ -f "${SERVER_INSTALL_FILE}" ]
|
||||
then
|
||||
INSTALLED="${YES}"
|
||||
VERSION=$(getVersion)
|
||||
fi
|
||||
# Logged into Steam
|
||||
if [ -f "${STEAM_LOGIN}" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue