فهرست منبع

Merge branch 'hotfix/170619'

Daniel Gibbs 9 سال پیش
والد
کامیت
1464cffd1c

+ 0 - 4
lgsm/config-default/config-lgsm/arkserver/_default.cfg

@@ -34,10 +34,6 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
-# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
-discordalert="off"
-discordwebhook="https://discordapp.com/api/webhooks/12345/abcd12345"
-
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 

+ 0 - 4
lgsm/config-default/config-lgsm/rustserver/_default.cfg

@@ -42,10 +42,6 @@ fi
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
 
 
-# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
-discordalert="off"
-discordwebhook="https://discordapp.com/api/webhooks/12345/abcd12345"
-
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"

+ 5 - 1
lgsm/functions/check_ip.sh

@@ -39,7 +39,11 @@ if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${travi
 			echo -en "https://gameservermanagers.com/network-interfaces\n"
 			echo -en "https://gameservermanagers.com/network-interfaces\n"
 			echo -en ""
 			echo -en ""
 			fn_script_log_fatal "Multiple active network interfaces found."
 			fn_script_log_fatal "Multiple active network interfaces found."
-			fn_script_log_fatal "Manually specify the IP you want to use within the ${selfname} script."
+			if [ "${legacymode}" == "1" ] then
+				fn_script_log_fatal "Manually specify the IP you want to use within the ${selfname} script."
+			else
+				fn_script_log_fatal "Manually specify the IP you want to use within: ${configdirserver}."
+			fi
 			fn_script_log_fatal "https://gameservermanagers.com/network-interfaces\n"
 			fn_script_log_fatal "https://gameservermanagers.com/network-interfaces\n"
 			core_exit.sh
 			core_exit.sh
 		else
 		else

+ 9 - 2
lgsm/functions/check_steamcmd.sh

@@ -18,10 +18,17 @@ fn_install_steamcmd(){
 fn_check_steamcmd_user(){
 fn_check_steamcmd_user(){
 	# Checks if steamuser is setup.
 	# Checks if steamuser is setup.
 	if [ "${steamuser}" == "username" ]; then
 	if [ "${steamuser}" == "username" ]; then
-		fn_print_fail_nl "Steam login not set. Update steamuser in ${selfname}"
+		if [ "${legacymode}" == "1" ] then
+			fn_print_fail_nl "Steam login not set. Update steamuser in ${selfname}"
+		else
+			fn_print_fail_nl "Steam login not set. Update steamuser in ${configdirserver}"
+		fi
 		echo "	* Change steamuser=\"username\" to a valid steam login."
 		echo "	* Change steamuser=\"username\" to a valid steam login."
 		if [ -d "${lgsmlogdir}" ]; then
 		if [ -d "${lgsmlogdir}" ]; then
-			fn_script_log_fatal "Steam login not set. Update steamuser in ${selfname}"
+			if [ "${legacymode}" == "1" ] then
+				fn_script_log_fatal "Steam login not set. Update steamuser in ${selfname}"
+			else
+				fn_script_log_fatal "Steam login not set. Update steamuser in ${configdirserver}"
 		fi
 		fi
 		core_exit.sh
 		core_exit.sh
 	fi
 	fi

+ 2 - 2
lgsm/functions/command_console.sh

@@ -10,10 +10,10 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
 check.sh
 check.sh
 fn_print_header
 fn_print_header
-if [ "${gamename}" == "Rust" ]||[ "${gamename}" == "Hurtworld" ]; then
+if [ "${gamename}" == "Rust" ]||[ "${gamename}" == "Hurtworld" ]||[ "${gamename}" == "ARK: Survival Evolved" ]; then
 	fn_print_information_nl "${gamename} does not produce a verbose output to the console"
 	fn_print_information_nl "${gamename} does not produce a verbose output to the console"
 fi
 fi
-if [ "${gamename}" == "Rust" ]||[ "${gamename}" == "Hurtworld" ]; then
+if [ "${gamename}" == "Rust" ]||[ "${gamename}" == "Hurtworld" ]||[ "${gamename}" == "ARK: Survival Evolved" ]; then
 	fn_print_information_nl "${gamename} does not allow server commands to be entered in to the console"
 	fn_print_information_nl "${gamename} does not allow server commands to be entered in to the console"
 fi
 fi
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."

+ 1 - 1
lgsm/functions/core_legacy.sh

@@ -25,7 +25,7 @@ if [ -z "${lgsmlogdir}" ]; then
 	lgsmlogdir="${scriptlogdir}"
 	lgsmlogdir="${scriptlogdir}"
 fi
 fi
 
 
-if [ -z "${scriptlogdate}" ]; then
+if [ -z "${lgsmlogdate}" ]; then
 	lgsmlogdate="${scriptlogdate}"
 	lgsmlogdate="${scriptlogdate}"
 fi
 fi
 
 

+ 4 - 0
linuxgsm.sh

@@ -8,6 +8,10 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 
 
 # DO NOT EDIT THIS FILE
 # DO NOT EDIT THIS FILE
+# LinuxGSM configuration is no longer edited here
+# To update your LinuxGSM config go to:
+# lgsm/config-lgsm
+# https://github.com/GameServerManagers/LinuxGSM/wiki/LinuxGSM-Config-Files
 
 
 # Debugging
 # Debugging
 if [ -f ".dev-debug" ]; then
 if [ -f ".dev-debug" ]; then