mirror of
				https://ceregatti.org/git/daniel/dayzdockerserver.git
				synced 2025-11-04 07:13:34 +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 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}"
 | 
							RUNNING="${RUNNING}\nRunning server parameter: ${green}$(cat /tmp/server_command_line)${default}"
 | 
				
			||||||
	fi
 | 
						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=${MAP}
 | 
						MAP=${MAP}
 | 
				
			||||||
	# Number of mods plus the list denoting on or off
 | 
						# Number of mods plus the list denoting on or off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										21
									
								
								web/bin/dz
									
										
									
									
									
								
							
							
						
						
									
										21
									
								
								web/bin/dz
									
										
									
									
									
								
							| 
						 | 
					@ -204,7 +204,6 @@ install(){
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		printf "[ ${lightblue}DayZ${default} ] The server is already installed.\n"
 | 
							printf "[ ${lightblue}DayZ${default} ] The server is already installed.\n"
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	putVersion
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Update the server files.
 | 
					# Update the server files.
 | 
				
			||||||
| 
						 | 
					@ -250,25 +249,6 @@ update(){
 | 
				
			||||||
		printf "\tAvailable version: ${green}${availablebuild}${default}\n"
 | 
							printf "\tAvailable version: ${green}${availablebuild}${default}\n"
 | 
				
			||||||
		printf "\thttps://steamdb.info/app/${release_server_appid}/\n\n"
 | 
							printf "\thttps://steamdb.info/app/${release_server_appid}/\n\n"
 | 
				
			||||||
	fi
 | 
						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
 | 
					# Update mods
 | 
				
			||||||
| 
						 | 
					@ -291,7 +271,6 @@ status(){
 | 
				
			||||||
	if [ -f "${SERVER_INSTALL_FILE}" ]
 | 
						if [ -f "${SERVER_INSTALL_FILE}" ]
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		INSTALLED="${YES}"
 | 
							INSTALLED="${YES}"
 | 
				
			||||||
		VERSION=$(getVersion)
 | 
					 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	# Logged into Steam
 | 
						# Logged into Steam
 | 
				
			||||||
	if [ -f "${STEAM_LOGIN}" ]
 | 
						if [ -f "${STEAM_LOGIN}" ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue