From 21d58659dfb6961135b6e5f203356d421f7ca4e9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Aug 2023 19:20:30 -0500 Subject: [PATCH] Update emulator-sync-scripts.sh --- emulator-sync-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emulator-sync-scripts.sh b/emulator-sync-scripts.sh index fa81bc3..5ef53a9 100755 --- a/emulator-sync-scripts.sh +++ b/emulator-sync-scripts.sh @@ -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