Update emulator-sync-scripts.sh

This commit is contained in:
2025-02-20 21:25:00 -06:00
parent df01a6bdc8
commit 557992940a

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERS='1.1.12-040220024' VERS='1.1.13-02202025'
source /opt/idssys/defaults/colors.inc source /opt/idssys/defaults/colors.inc
source /opt/idssys/defaults/default.inc source /opt/idssys/defaults/default.inc
@@ -56,7 +56,7 @@ RUNSYNC(){
${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): Fixed" >> ${ES_LOGFOLDER}/sync.log echo "$(date '+%F %T'): Fixed" >> ${ES_LOGFOLDER}/sync.log
SENDNOTICE "Nextcloud Sync Fixed" "Sync is running again" SENDNOTICE "Nextcloud Sync Fixed" "Sync is running again"
/bin/rm -f ${ES_LOGFOLDER}/failures* /bin/rm -f ${ES_LOGFOLDER}/failures*
elif [ -f ${ES_LOGFOLDER}/failures2.txt ] && [ -f ${ES_LOGFOLDER}/failures.txt ]; then elif [ -f ${ES_LOGFOLDER}/failures2.txt ] && [ -f ${ES_LOGFOLDER}/failures.txt ]; then