Update emulator-sync-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user