From 49d682a76b5c7ca513b10a613ac2f39d6572e6b4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 26 May 2025 15:34:13 -0500 Subject: [PATCH] Update emulator-sync-scripts.sh --- emulator-sync-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emulator-sync-scripts.sh b/emulator-sync-scripts.sh index b09662a..d835383 100755 --- a/emulator-sync-scripts.sh +++ b/emulator-sync-scripts.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERS='1.1.13-02202025' +VERS='1.1.14-05262025' source /opt/idssys/defaults/colors.inc source /opt/idssys/defaults/default.inc @@ -53,7 +53,11 @@ RUNSYNC(){ done mv ${ES_LOGFOLDER}/nextcloudcmd.txt ${ES_LOGFOLDER}/nextcloudcmd.txt.1 2>/dev/null + dbfile=( ${NC_PATH}/.*.db ) + /usr/bin/sqlite3 $dbfile 'PRAGMA journal_mode = delete;' + ${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 '+%F %T'): Fixed" >> ${ES_LOGFOLDER}/sync.log