diff options
author | mark <mark> | 2009-06-26 06:55:07 +0000 |
---|---|---|
committer | mark <mark> | 2009-06-26 06:55:07 +0000 |
commit | 45a4c5ad153a132ab392d71ca7cffbd08ff3c9c2 (patch) | |
tree | 42fd6e37b4febbc16390d86e67aa5fc9a35657c9 /FS/bin/freeside-daily | |
parent | 2958ef6290556aa0528d4301725f90b57f49dc19 (diff) |
Add expiration alerts to freeside-daily routine
Diffstat (limited to 'FS/bin/freeside-daily')
-rwxr-xr-x | FS/bin/freeside-daily | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index acf795087..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); @@ -16,7 +17,8 @@ bill(%opt); # Send alerts about upcoming credit card expiration. use FS::Cron::alert_expiration qw(alert_expiration); -alert_expiration(%opt); +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. |