mirror of
				https://ceregatti.org/git/daniel/dayzdockerserver.git
				synced 2025-11-04 07:13:34 +00:00 
			
		
		
		
	Add proper version output in the central dz script.
This commit is contained in:
		
							parent
							
								
									7ff7cf2048
								
							
						
					
					
						commit
						c4498d4098
					
				
					 1 changed files with 14 additions and 2 deletions
				
			
		| 
						 | 
					@ -33,10 +33,10 @@ export 	cyan="\e[36m"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# DayZ release server Steam app ID.
 | 
					# DayZ release server Steam app ID.
 | 
				
			||||||
# Now that the Linux server is released, the binaries will come from this ID.
 | 
					# Now that the Linux server is released, the binaries will come from this ID.
 | 
				
			||||||
export release_server_appid=223350
 | 
					#export release_server_appid=223350
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Leaving the experimental server appid here to allow for the use of the experimental server.
 | 
					# Leaving the experimental server appid here to allow for the use of the experimental server.
 | 
				
			||||||
#export release_server_appid=1042420
 | 
					export release_server_appid=1042420
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# DayZ release client SteamID. This is for mods, as only the release client has them.
 | 
					# DayZ release client SteamID. This is for mods, as only the release client has them.
 | 
				
			||||||
export release_client_appid=221100
 | 
					export release_client_appid=221100
 | 
				
			||||||
| 
						 | 
					@ -51,6 +51,18 @@ export SERVER_FILES="/serverfiles"
 | 
				
			||||||
# Used to check if dayZ is installed
 | 
					# Used to check if dayZ is installed
 | 
				
			||||||
export SERVER_INSTALL_FILE="${SERVER_FILES}/DayZServer"
 | 
					export SERVER_INSTALL_FILE="${SERVER_FILES}/DayZServer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ -f ${SERVER_INSTALL_FILE} ]
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					        # Release or Experimental
 | 
				
			||||||
 | 
					        if [[ ${release_server_appid} = "223350" ]]
 | 
				
			||||||
 | 
					        then
 | 
				
			||||||
 | 
					                RELEASE="Stable"
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					                RELEASE="Experimental"
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
						VERSION=$(strings /serverfiles/DayZServer | grep -P "1\.\d{2}\.\d{6}")" - ${RELEASE}"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Steam files
 | 
					# Steam files
 | 
				
			||||||
export STEAM_LOGIN="${HOME}/steamlogin"
 | 
					export STEAM_LOGIN="${HOME}/steamlogin"
 | 
				
			||||||
export STEAMCMD=steamcmd
 | 
					export STEAMCMD=steamcmd
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue