Update emulator-sync-scripts.sh

This commit is contained in:
2023-10-01 14:49:11 -05:00
parent 75262f1be5
commit cdbfbbf579

View File

@@ -40,8 +40,13 @@ RUNSYNC(){
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
/bin/rm -f ${ES_FOLDER}/nc-sync.running
exit 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
else
/bin/rm -f ${ES_FOLDER}/nc-sync.running
exit 1
fi
else
/bin/mv ${ES_LOGFOLDER}/failures.txt ${ES_LOGFOLDER}/failures2.txt
fi