X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-daily;h=e6cb0dcd603dcef089dcb63ab8c149e1e7c5e863;hb=16c302199c7544f6842978d3a97d154e7a9e225f;hp=ac93aaf2f50c6ae70ac7f1de049e44b2bfbaff7d;hpb=a72a10f754f7465121d6137bb3dcee0a21ea6443;p=freeside.git diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index ac93aaf2f..e6cb0dcd6 100755 --- a/FS/bin/freeside-daily +++ b/FS/bin/freeside-daily @@ -38,10 +38,13 @@ upload(%opt); use FS::Cron::set_lata_have_usage qw(set_lata_have_usage); set_lata_have_usage(%opt); -# Send alerts about upcoming credit card expiration. -use FS::Cron::alert_expiration qw(alert_expiration); +# we used to send alerts about upcoming credit card expiration here my $conf = new FS::Conf; -alert_expiration(%opt) if($conf->exists('alert_expiration')); +if($conf->exists('alert_expiration')) { + warn "WARNING: the alert_expiration option is obsolete. If you ran + freeside-upgrade, it should have configured credit card expiration alerts + as billing events.\n"; +} #what to do about the below when using -m? that is the question. @@ -77,6 +80,10 @@ unlink <${deldir}.CGItemp*>; use FS::Cron::backup qw(backup); backup(); +#except we'd rather not start cleanup jobs until the backup is done +use FS::Cron::cleanup qw(cleanup); +cleanup(); + $log->info('finish'); ###