From 1a6c94fcd1756653515f4e18fd522b2a0bba42fd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 26 Mar 2023 20:17:06 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index b25dbd3..4485299 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -336,7 +336,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf if [ "${checkport}" != "" ]; then checked="" fi - if [ "${checked}" == "false" ] && [ ${cc} -eq 5 ]; then + if [ "${checked}" == "false" ] && [ ${cc} -eq 7 ]; then echo -e "${idsCL[Red]}${srvc} Service is not starting properly, will try and update${idsCL[Default]}" echo "$(date) - ${srvc} Service is not starting properly, will try and update" >> $logfile SENDNOTICE "${srvc} Service Issue" "${srvc} Service is not starting properly, will try and update" 1 @@ -357,6 +357,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf if ([ "${checkport}" == "" ] || [ "${tryupdate}" == "true" ]) && [ "${MM_UPDATE_REPO[${srvc}]}" != "" ]; then UPDATESERVICE ${srvc} >/dev/null 2>&1 echo -e "${idsCL[Green]}Done${idsCL[Default]}" + + elif [ "${tryupdate}" == "true" ]; then + echo -e "${idsCL[Green]}Done${idsCL[Default]}" fi fi done