From 21f055fafb238118c8d3e9657dc4e5e04899d0bd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 20:00:28 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index d4a000e..7f026c8 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -356,7 +356,7 @@ MMSTART(){ msg="${mmsv} Services"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}" - if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ] && [ ! -f ${MMFOLDER}/mm.plexmount.fail ]; then + if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ] && ([ ! -f ${MMFOLDER}/mm.plexmount.fail ] && [ ! -f ${MMFOLDER}/mm.plexmount.fail2 ]); then for srvc in "${SERVICES_CHECK[@]}"; do [ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc} done