Update services.inc
This commit is contained in:
@@ -14,7 +14,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
touch ${NM_TMPFOLDER}/.singleserver
|
touch ${NM_TMPFOLDER}/.singleserver
|
||||||
fi
|
fi
|
||||||
gofor=false
|
gofor=false
|
||||||
if [ "${1^^}" == "WEB" ] && [ ! -f /mnt/web-data/mounted ]; then
|
if [ "${1^^}" == "WEBxx" ] && [ ! -f ${NM_REPL_CHECK_LOC['web-data']}/mounted ]; then
|
||||||
/bin/mount -a
|
/bin/mount -a
|
||||||
sleep 5s
|
sleep 5s
|
||||||
[ -f ${NM_REPL_CHECK_LOC["${1}-data"]}/mounted ] && gofor=true
|
[ -f ${NM_REPL_CHECK_LOC["${1}-data"]}/mounted ] && gofor=true
|
||||||
@@ -80,9 +80,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
rm -f ${NM_TMPFOLDER}/.singleserver
|
rm -f ${NM_TMPFOLDER}/.singleserver
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(systemctl is-active nginx)" != "active" ]; then
|
[ "${1^^}" == "WEB" ] && [ "$(systemctl is-active nginx)" != "active" ] && ${NM_SCRIPT} service web restart ${RUN_NODE_IP}
|
||||||
${NM_SCRIPT} service web restart ${RUN_NODE_IP}
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user