X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-daily;h=271c436c6a71988ffcccd1934b3ed32ed7b37b30;hb=45a4c5ad153a132ab392d71ca7cffbd08ff3c9c2;hp=bda42f025f6ab042834f9d1b6273c9d40608f988;hpb=f8f8613866ba3df9a571922046978623943ccb14;p=freeside.git diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index bda42f025..271c436c6 100755 --- a/FS/bin/freeside-daily +++ b/FS/bin/freeside-daily @@ -3,6 +3,7 @@ use strict; use Getopt::Std; use FS::UID qw(adminsuidsetup); +use FS::Conf; &untaint_argv; #what it sounds like (eww) use vars qw(%opt); @@ -14,6 +15,11 @@ adminsuidsetup $user; use FS::Cron::bill qw(bill); bill(%opt); +# Send alerts about upcoming credit card expiration. +use FS::Cron::alert_expiration qw(alert_expiration); +my $conf = new FS::Conf; +alert_expiration(%opt) if($conf->exists('alert_expiration')); + #what to do about the below when using -m? that is the question. #you don't want to skip this, besides, it should be cheap