4
0
Эх сурвалжийг харах

Merge branch 'feature/stats-fixes' into hotfix/v19.12.5

Daniel Gibbs 6 жил өмнө
parent
commit
583537d46e

+ 1 - 1
lgsm/functions/command_monitor.sh

@@ -136,7 +136,7 @@ for queryattempt in {1..5}; do
 		fn_sleep_time
 		monitorpass=1
 		# send LinuxGSM stats if monitor is OK.
-		if [ "${stats}" == "on" ]; then
+		if [ "${stats}" == "on" ]||[ "${stats}" == "y" ]; then
 			info_stats.sh
 		fi
     if [ "${querystatus}" == "0" ]; then

+ 1 - 1
lgsm/functions/install_stats.sh

@@ -21,7 +21,7 @@ echo -e "* game server resource usage"
 echo -e "* server hardware info"
 if [ -z "${autoinstall}" ]; then
 	if fn_prompt_yn "Allow anonymous usage statistics?" Y; then
-		echo "stats=\"y\"" >> "${configdirserver}/common.cfg"
+		echo "stats=\"on\"" >> "${configdirserver}/common.cfg"
 		fn_print_information_nl "Stats setting is now enabled in common.cfg."
 	fi
 else