summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-daily
diff options
context:
space:
mode:
authormark <mark>2009-06-26 06:55:07 +0000
committermark <mark>2009-06-26 06:55:07 +0000
commit45a4c5ad153a132ab392d71ca7cffbd08ff3c9c2 (patch)
tree42fd6e37b4febbc16390d86e67aa5fc9a35657c9 /FS/bin/freeside-daily
parent2958ef6290556aa0528d4301725f90b57f49dc19 (diff)
Add expiration alerts to freeside-daily routine
Diffstat (limited to 'FS/bin/freeside-daily')
-rwxr-xr-xFS/bin/freeside-daily4
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.