This commit is contained in:
2019-01-28 16:21:07 -06:00
parent f8ccdedd9b
commit e368581bde
2 changed files with 56 additions and 1 deletions

3
run.sh
View File

@@ -7,7 +7,7 @@ source /opt/idssys/defaults/colors.inc
VERS=`mysql -h 10.5.10.56 -P 3308 -u sqluser -pdcs2057 -s -N -e "SELECT value FROM idssys.nodemgmt WHERE var = 'VERS'"`
if [ "$1" != "service" ] && [ "$1" != "" ]; then
if [ "$1" != "service" ] && [ "$1" != "status" ] && [ "$1" != "" ]; then
if [ $(pgrep mysql | wc -l) -gt "0" ]; then
SER_MYSQL="${idsCL[Green]}Running${idsCL[Default]}"
else SER_MYSQL="${idsCL[Red]}Not Running${idsCL[Default]}"
@@ -45,6 +45,7 @@ if [ "$1" != "service" ] && [ "$1" != "" ]; then
echo -e "MaxScale: ${SER_MS}"
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
echo ""
if [ "$1" = "update" ]; then echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
else echo -e "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
fi