[freeside-commits] freeside/FS/bin freeside-daily,1.30,1.31

Mark Wells mark at wavetail.420.am
Thu Jun 25 23:55:09 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv11084/bin

Modified Files:
	freeside-daily 
Log Message:
Add expiration alerts to freeside-daily routine

Index: freeside-daily
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-daily,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- freeside-daily	24 Jun 2009 09:07:21 -0000	1.30
+++ freeside-daily	26 Jun 2009 06:55:07 -0000	1.31
@@ -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 @@
 
 # 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.
 



More information about the freeside-commits mailing list