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 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
} }