Update nodemgmt-scripts.sh

This commit is contained in:
2022-12-03 21:57:37 -06:00
parent cd0b5969ee
commit c1dfc869e3

View File

@@ -181,6 +181,7 @@ STATUS(){
echo -en " ${NM_SERVICES[${srvc}]}$spc: "
fi
srvctst=$(${NCMD} systemctl is-active ${srvc})
echo "${NCMD} systemctl is-active ${srvc} = ${srvctst}"
if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then
mysqlgo=false;
[ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true;