From 2615977d56cd3240240f417a16a97c0b0756723e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 20 Feb 2024 18:17:33 -0600 Subject: [PATCH] Update emulator-sync-scripts.sh --- emulator-sync-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emulator-sync-scripts.sh b/emulator-sync-scripts.sh index fa29dc2..a97a4a4 100755 --- a/emulator-sync-scripts.sh +++ b/emulator-sync-scripts.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERS='1.1.9-10012023' +VERS='1.1.10-022020024' source /opt/idssys/defaults/colors.inc source /opt/idssys/defaults/default.inc @@ -38,8 +38,8 @@ RUNSYNC(){ # echo -e "${idsCL[Red]}Failed${idsCL[Default]}" if [ -f ${ES_LOGFOLDER}/failures2.txt ]; then - echo "Nextcloud sync failure, ${ES_LOGFOLDER}/failures2.txt exists." - SENDNOTICE "Nextcloud Sync Failure" "${ES_LOGFOLDER}/failures2.txt Exists\n\n$(date)" 1 + # echo "Nextcloud sync failure, ${ES_LOGFOLDER}/failures2.txt exists." + # SENDNOTICE "Nextcloud Sync Failure" "${ES_LOGFOLDER}/failures2.txt Exists\n\n$(date)" 1 if [ -f "${NM_TMPFOLDER}/status-check.running" ] && [ $(expr `date +%s` - $(stat -c %Y ${NM_TMPFOLDER}/status-check.running)) -gt 1800 ]; then /bin/rm -f ${ES_LOGFOLDER}/failures.txt @@ -65,8 +65,8 @@ RUNSYNC(){ SENDNOTICE "Nextcloud Sync Fixed" "Sync is running again" /bin/rm -f ${ES_LOGFOLDER}/failures* elif [ -f ${ES_LOGFOLDER}/failures2.txt ] && [ -f ${ES_LOGFOLDER}/failures.txt ]; then - echo -e "${idsCL[Red]}Nextcloud 2nd sync failure" - SENDNOTICE "Nextcloud 2nd Sync Failure" "${ES_LOGFOLDER}/failures2.txt Exists\n\n$(date)" 1 + echo -e "${idsCL[Red]}Nextcloud repeat sync failure" + SENDNOTICE "Nextcloud repeat Sync Failure" "${ES_LOGFOLDER}/failures2.txt Exists\n\n$(date)" 1 else echo -e "${idsCL[Green]}Done${idsCL[Default]}" fi