update
This commit is contained in:
22
run.sh
22
run.sh
@@ -12,28 +12,8 @@ source /opt/idssys/nodemgmt/defaults.inc
|
||||
|
||||
if [ "$1" != "service" ] && [ "$1" != "status-check" ] && [ "$1" != "nightlyrenew" ]; then
|
||||
if [ -z $1 ] || "${1}" = "gui" ]; then
|
||||
clear
|
||||
DISP_HEADER
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo -e "${idsCL[Yellow]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
|
||||
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
||||
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}${NODE_HOSTNAME}${idsCL[Default]}${idsST[Reset]}"
|
||||
if [ -z ${LOCAL_SERVICES+x} ]; then SERVICES=$( IFS=$','; echo "${NODE_SERVICES[*]}" )
|
||||
else SERVICES=$( IFS=$','; echo "${LOCAL_SERVICES[*]}" )
|
||||
fi
|
||||
IFS=,; SERVICES2=(${SERVICES}); unset IFS
|
||||
for srvc in "${SERVICES2[@]}"
|
||||
do
|
||||
if [[ "mysql,nginx,gitea,haproxy,keepalived,maxscale" = *"${srvc}"* ]]; then spc=" "; else spc=""; fi
|
||||
echo -en "${NM_SERVICES[${srvc}]} $spc"
|
||||
if [ $(pgrep ${srvc} | wc -l) -gt "0" ]; then
|
||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
||||
else echo -e "${idsCL[Red]}Not Running${idsCL[Default]}"
|
||||
fi
|
||||
done
|
||||
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
|
||||
echo ""
|
||||
if [ "${1}" != "gui" ]; then
|
||||
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user