Update emulator-sync-scripts.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERS='1.1.13-02202025'
|
VERS='1.1.14-05262025'
|
||||||
|
|
||||||
source /opt/idssys/defaults/colors.inc
|
source /opt/idssys/defaults/colors.inc
|
||||||
source /opt/idssys/defaults/default.inc
|
source /opt/idssys/defaults/default.inc
|
||||||
@@ -53,7 +53,11 @@ RUNSYNC(){
|
|||||||
done
|
done
|
||||||
mv ${ES_LOGFOLDER}/nextcloudcmd.txt ${ES_LOGFOLDER}/nextcloudcmd.txt.1 2>/dev/null
|
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
|
${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
|
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 -e "${idsCL[Green]}Fixed, the last sync had failed${idsCL[Default]}"
|
||||||
echo "$(date '+%F %T'): Fixed" >> ${ES_LOGFOLDER}/sync.log
|
echo "$(date '+%F %T'): Fixed" >> ${ES_LOGFOLDER}/sync.log
|
||||||
|
|||||||
Reference in New Issue
Block a user