From 1275ba2583d538f5e6104f7400e4b7665dd4dfd7 Mon Sep 17 00:00:00 2001 From: Christian Fenzl Date: Tue, 6 Mar 2018 01:20:01 +0100 Subject: [PATCH] Fixed initialization of path's --- postinstall.sh | 4 ++++ webfrontend/htmlauth/index.cgi | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/postinstall.sh b/postinstall.sh index 309c02f..49262ed 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -34,18 +34,22 @@ if [ ! -e REPLACELBPLOGDIR ]; then fi if [ -e "$LBHOMEDIR/system/cron/cron.daily/$2*" ]; then + echo " Deleting old daily schedules" rm -f $LBHOMEDIR/system/cron/cron.daily/$2* UPGRADE=1 fi if [ -e "$LBHOMEDIR/system/cron/cron.weekly/$2*" ]; then + echo " Deleting old weekly schedules" rm -f $LBHOMEDIR/system/cron/cron.weekly/$2* UPGRADE=1 fi if [ -e "$LBHOMEDIR/system/cron/cron.monthly/$2*" ]; then + echo " Deleting old monthly schedules" rm -f $LBHOMEDIR/system/cron/cron.monthly/$2* UPGRADE=1 fi if [ -e "$LBHOMEDIR/system/cron/cron.yearly/$2*" ]; then + echo " Deleting old yearly schedules" rm -f $LBHOMEDIR/system/cron/cron.yearly/$2* UPGRADE=1 fi diff --git a/webfrontend/htmlauth/index.cgi b/webfrontend/htmlauth/index.cgi index ab817b5..1fce501 100644 --- a/webfrontend/htmlauth/index.cgi +++ b/webfrontend/htmlauth/index.cgi @@ -125,11 +125,11 @@ print STDERR "========== LoxBerry Backup Version $pluginversion === ($datestring $pcfg->param("JITBACKUP.DESTINATION", "/backup") if (! $pcfg->param("JITBACKUP.DESTINATION")); -$pcfg->param("DDZ.DESTINATION", "/backup") if (! $pcfg->param("DD.DESTINATION")); +$pcfg->param("DDZ.DESTINATION", "/backup") if (! $pcfg->param("DDZ.DESTINATION")); $pcfg->param("RSYNC.DESTINATION", "/backup") if (! $pcfg->param("RSYNC.DESTINATION")); $pcfg->param("TGZ.DESTINATION", "/backup") if (! $pcfg->param("TGZ.DESTINATION")); -$pcfg->param("DDZ.RETENTION", "3") if (! $pcfg->param("DD.RETENTION")); +$pcfg->param("DDZ.RETENTION", "3") if (! $pcfg->param("DDZ.RETENTION")); $pcfg->param("RSYNC.RETENTION", "3") if (! $pcfg->param("RSYNC.RETENTION")); $pcfg->param("TGZ.RETENTION", "3") if (! $pcfg->param("TGZ.RETENTION"));