Update emulator-sync-scripts.sh

This commit is contained in:
2023-08-29 19:20:30 -05:00
parent fba7a5dc86
commit 21d58659df

View File

@@ -47,10 +47,11 @@ RUNSYNC(){
fi
fi
if [ ! -f ${ES_LOGFOLDER}/failures.txt ]; then
${ES_FOLDER}/nextcloud-sync-cron/nextcloud-sync-cron.sh --verbose --logdir ${ES_LOGFOLDER} ${ES_FOLDER}/nextcloud-client.conf
if [ -f ${ES_LOGFOLDER}/failures2.txt ] && [ ! -f ${ES_LOGFOLDER}/failures.txt ]; then
echo -e "${idsCL[Green]}Fixed, the last sync had failed${idsCL[Default]}"
echo "$(date): Fixed" >> ${NC_PATH}/sync.log
echo "$(date): Fixed" >> ${ES_LOGFOLDER}/sync.log
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