Update services.inc

This commit is contained in:
2023-11-29 09:58:46 -06:00
parent 013989d538
commit 12af8984e4

View File

@@ -14,7 +14,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
touch ${NM_TMPFOLDER}/.singleserver
fi
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
sleep 5s
[ -f ${NM_REPL_CHECK_LOC["${1}-data"]}/mounted ] && gofor=true
@@ -80,9 +80,7 @@ SINGLE_SERVER_SERVICE_CHECK(){
rm -f ${NM_TMPFOLDER}/.singleserver
fi
if [ "$(systemctl is-active nginx)" != "active" ]; then
${NM_SCRIPT} service web restart ${RUN_NODE_IP}
fi
[ "${1^^}" == "WEB" ] && [ "$(systemctl is-active nginx)" != "active" ] && ${NM_SCRIPT} service web restart ${RUN_NODE_IP}
fi
}