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