From 12af8984e4a871faa158ec6fa28fcb4f906293cf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 29 Nov 2023 09:58:46 -0600 Subject: [PATCH] Update services.inc --- inc/services.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/services.inc b/inc/services.inc index ba567f59..9582619a 100755 --- a/inc/services.inc +++ b/inc/services.inc @@ -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 }