From 06670a8c1588631d6c7dfecd282fce2d9065b669 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 4 Dec 2019 19:22:11 +0000 Subject: [PATCH] fix(stats): correct setting on install to state on instead of y --- lgsm/functions/command_monitor.sh | 2 +- lgsm/functions/install_stats.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_monitor.sh b/lgsm/functions/command_monitor.sh index c3147b975c..363189098f 100644 --- a/lgsm/functions/command_monitor.sh +++ b/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 diff --git a/lgsm/functions/install_stats.sh b/lgsm/functions/install_stats.sh index 2d304e4475..35a6f608f4 100644 --- a/lgsm/functions/install_stats.sh +++ b/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