From a0b35a42bb7b55e3c4fbfe039fe592abd740baa4 Mon Sep 17 00:00:00 2001 From: Christian Fenzl Date: Tue, 6 Mar 2018 01:27:13 +0100 Subject: [PATCH] Fixes upgrade check --- postinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postinstall.sh b/postinstall.sh index 49262ed..092e914 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -49,12 +49,12 @@ if [ -e "$LBHOMEDIR/system/cron/cron.monthly/$2*" ]; then UPGRADE=1 fi if [ -e "$LBHOMEDIR/system/cron/cron.yearly/$2*" ]; then - echo " Deleting old yearly schedules" + echo " Deleting old yearly schedules ($LBHOMEDIR/system/cron/cron.yearly/$2*) " rm -f $LBHOMEDIR/system/cron/cron.yearly/$2* UPGRADE=1 fi -if [ -z "$UPGRADE" ]; then +if [ -n "$UPGRADE" ]; then . $LBHOMEDIR/libs/bashlib/notify.sh notify $3 Update "LoxBerry Backup changed the schedule system. Please reconfigure the schedules of your backups. No more automatic backups will be done otherwise." err echo " LoxBerry Backup changed the schedule system. Please reconfigure the schedules of your backups. No more automatic backups will be done otherwise."