Update nodemgmt-scripts.sh
This commit is contained in:
@@ -180,6 +180,7 @@ STATUS(){
|
|||||||
[ "${srvc}" == "gitea" ] && [ "${NTYPE}" == "WEB" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${WEB_HOSTS[0]}* ]] && NOGOCHK=false || NOGOCHK=true
|
[ "${srvc}" == "gitea" ] && [ "${NTYPE}" == "WEB" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${WEB_HOSTS[0]}* ]] && NOGOCHK=false || NOGOCHK=true
|
||||||
if [ ${NOGOCHK} == true ]; then
|
if [ ${NOGOCHK} == true ]; then
|
||||||
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
|
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
|
||||||
|
echo "H: ${srvcstotest}"
|
||||||
echo "H: $srvctst"
|
echo "H: $srvctst"
|
||||||
echo "H: $srvctst[0] $srvctt[1] $srvctt[2] $srvctt[3]"
|
echo "H: $srvctst[0] $srvctt[1] $srvctt[2] $srvctt[3]"
|
||||||
sr=0
|
sr=0
|
||||||
|
|||||||
Reference in New Issue
Block a user