From 3afc4752f57348e1534eb5e7e94d306fa4b5ca44 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 12 Aug 2023 17:24:09 -0500 Subject: [PATCH] Update emulator-sync-scripts.sh --- emulator-sync-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emulator-sync-scripts.sh b/emulator-sync-scripts.sh index 699babb..5fbd1c5 100755 --- a/emulator-sync-scripts.sh +++ b/emulator-sync-scripts.sh @@ -53,9 +53,9 @@ RUNSYNC(){ echo "$(date): Fixed" >> ${NC_PATH}/sync.log SENDNOTICE "Nextcloud Sync Fixed" "Sync is running again" /bin/rm -f ${ES_LOGFOLDER}/failures* - else + elif [ -f ${ES_LOGFOLDER}/failures2.txt ] && [ -f ${ES_LOGFOLDER}/failures.txt ]; then echo "Nextcloud 2nd sync failure" - SENDNOTICE "Nextcloud 2nd Sync Failure" "${ES_LOGFOLDER}/failures2.txt Exists\n\n$(date)" 1 + SENDNOTICE "Nextcloud 2nd Sync Failure" "${ES_LOGFOLDER}/failures2.txt Exists\n\n$(date)" 1 fi /bin/rm -f ${ES_FOLDER}/nc-sync.running fi