Update nodemgmt-scripts.sh
This commit is contained in:
@@ -182,6 +182,11 @@ STATUS(){
|
||||
fi
|
||||
srvctst=$(${NCMD} systemctl is-active ${srvc})
|
||||
echo "${NCMD} systemctl is-active ${srvc} = ${srvctst}"
|
||||
if [ "${srvctst}" == "active" ]; then
|
||||
echo "yes"
|
||||
else
|
||||
echo "no"
|
||||
fi
|
||||
if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then
|
||||
mysqlgo=false;
|
||||
[ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true;
|
||||
|
||||
Reference in New Issue
Block a user