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