From c24d1f0b29d2bf785a903936229e0a67db45ed24 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Aug 2023 19:23:59 -0500 Subject: [PATCH] Update emulator-sync-scripts.sh --- emulator-sync-scripts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emulator-sync-scripts.sh b/emulator-sync-scripts.sh index 5ef53a9..1f05052 100755 --- a/emulator-sync-scripts.sh +++ b/emulator-sync-scripts.sh @@ -48,6 +48,11 @@ RUNSYNC(){ fi if [ ! -f ${ES_LOGFOLDER}/failures.txt ]; then + for i in `seq 9 -1 1`; do + mv "${ES_LOGFOLDER}/nextcloudcmd.txt."{$i,$((i+1))} 2>/dev/null + done + mv ${ES_LOGFOLDER}/nextcloudcmd.txt ${ES_LOGFOLDER}/nextcloudcmd.txt.1 2>/dev/null + ${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]}"