Update emulator-sync-scripts.sh

This commit is contained in:
2025-05-26 15:34:13 -05:00
parent 557992940a
commit 49d682a76b

View File

@@ -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