diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 0c62c015..15b2cffe 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -193,6 +193,8 @@ STATUS(){ elif [ "${srvctst}" != "active" ] && [ "${srvc}" = "mariadb" ]; then mysqlgo=false; [ "$(${NCMD} systemctl is-active mysql)" = "active" ] && mysqlgo=true; + elif [ "${srvctst}" = "active" ] && [[ "${srvc}" = "mysql" ] || [ "${srvc}" = "mariadb" ]]; then + mysqlgo=true fi echo "mysqlgo=${mysqlgo}" if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then