Update nodemgmt-scripts.sh
This commit is contained in:
@@ -184,7 +184,10 @@ STATUS(){
|
|||||||
if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then
|
if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then
|
||||||
mysqlgo=false;
|
mysqlgo=false;
|
||||||
[ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true;
|
[ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true;
|
||||||
}
|
else if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mariadb" ]; then
|
||||||
|
mysqlgo=false;
|
||||||
|
[ "$(${NCMD} systemctl is-active mysql)" == "active" ] && mysqlgo=true;
|
||||||
|
fi
|
||||||
if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then
|
if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then
|
||||||
if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then
|
if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user