From 095e016e5b555b3ad725727348d3e75353776559 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Dec 2022 22:10:12 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index dbd57121..0c62c015 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -187,12 +187,12 @@ STATUS(){ else echo "no" fi - if [ "${srvctst}" != "active" ] && [ "${srvc}" == "mysql" ]; then + if [ "${srvctst}" != "active" ] && [ "${srvc}" = "mysql" ]; then mysqlgo=false; - [ "$(${NCMD} systemctl is-active mariadb)" == "active" ] && mysqlgo=true; - elif [ "${srvctst}" != "active" ] && [ "${srvc}" == "mariadb" ]; then + [ "$(${NCMD} systemctl is-active mariadb)" = "active" ] && mysqlgo=true; + elif [ "${srvctst}" != "active" ] && [ "${srvc}" = "mariadb" ]; then mysqlgo=false; - [ "$(${NCMD} systemctl is-active mysql)" == "active" ] && mysqlgo=true; + [ "$(${NCMD} systemctl is-active mysql)" = "active" ] && mysqlgo=true; fi echo "mysqlgo=${mysqlgo}" if [ "{srvctst}" != "active" ] && [ "${mysqlgo}" != "true" ]; then