diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5c5f7680..5f74ddd0 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -184,7 +184,7 @@ STATUS(){ if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then mysqlgo=false; [ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true; - else if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mariadb" ]; then + elif [ "${srvctst}" != "active" ] && [ "${srvc}" == "mariadb" ]; then mysqlgo=false; [ "$(${NCMD} systemctl is-active mysql)" == "active" ] && mysqlgo=true; fi