Skip to content

Commit

Permalink
Fixed initialization of path's
Browse files Browse the repository at this point in the history
  • Loading branch information
christianTF committed Mar 6, 2018
1 parent d2b9169 commit 1275ba2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,22 @@ if [ ! -e REPLACELBPLOGDIR ]; then
fi

if [ -e "$LBHOMEDIR/system/cron/cron.daily/$2*" ]; then
echo "<WARNING> 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 "<WARNING> 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 "<WARNING> 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 "<WARNING> Deleting old yearly schedules"
rm -f $LBHOMEDIR/system/cron/cron.yearly/$2*
UPGRADE=1
fi
Expand Down
4 changes: 2 additions & 2 deletions webfrontend/htmlauth/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit 1275ba2

Please sign in to comment.