mvhub-dev team mailing list archive
-
mvhub-dev team
-
Mailing list archive
-
Message #00083
[Branch ~mvhub-dev/mvhub/trunk] Rev 364: merged fix_notification_options
Merge authors:
Lee Goodrich (leegoodrich)
Related merge proposals:
https://code.launchpad.net/~leegoodrich/mvhub/fix_notification_options/+merge/23340
proposed by: Lee Goodrich (leegoodrich)
review: Approve - Dan MacNeil (omacneil)
------------------------------------------------------------
revno: 364 [merge]
committer: Lee Goodrich <lgoodrich@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-04-15 11:02:26 -0400
message:
merged fix_notification_options
modified:
app-mvhub/bin/notification_email.pl
app-mvhub/setup/etc/cron.d/mvhub-cron
--
lp:mvhub
https://code.launchpad.net/~mvhub-dev/mvhub/trunk
Your team mvhub-dev is subscribed to branch lp:mvhub.
To unsubscribe from this branch go to https://code.launchpad.net/~mvhub-dev/mvhub/trunk/+edit-subscription
=== modified file 'app-mvhub/bin/notification_email.pl'
--- app-mvhub/bin/notification_email.pl 2010-04-02 18:46:01 +0000
+++ app-mvhub/bin/notification_email.pl 2010-04-13 14:57:16 +0000
@@ -34,7 +34,10 @@
/;
# Config File Variables
-my $cfg_filename = $ARGV[0] || $ENV{MV_CONFIG_FILE};
+my $cfg_filename = $ENV{MV_CONFIG_FILE};
+ Getopt::Long::GetOptions( 'config=s' => \$cfg_filename )
+ or die "GetOptions failed";
+
my $CFG = MVHub::Utils::ConfigSimple::create_config_from($cfg_filename);
my $MAX_NOTIFICATIONS = $CFG->param('NOTIFICATION.max_notifications');
@@ -60,7 +63,7 @@
my $execute = 0;
Getopt::Long::GetOptions( 'execute' => \$execute )
or die "GetOptions failed";
-
+
my @date = Date::Calc::Add_Delta_YM( Date::Calc::Today(), 0,
-($EXPIRE_MONTHS) );
my $expire_date = join '-', @date;
=== modified file 'app-mvhub/setup/etc/cron.d/mvhub-cron'
--- app-mvhub/setup/etc/cron.d/mvhub-cron 2010-03-31 15:20:38 +0000
+++ app-mvhub/setup/etc/cron.d/mvhub-cron 2010-04-13 15:17:26 +0000
@@ -19,4 +19,5 @@
10 0 * * * www-data $BIN_DIR//generate_agency_program_pdf.pl $CONF_DIR/$MVH_CONF_FILE
15 0 * * * www-data $BIN_DIR//generate_agency_program_pdf.pl $CONF_DIR/$NSP_CONF_FILE
- 51 8 1,15 * * www-data $BIN_DIR/notification_email.pl --execute
+ 51 8 1,15 * * www-data $BIN_DIR/notification_email.pl --config=$CONF_DIR/$MVH_CONF_FILE --execute
+ 51 8 1,15 * * www-data $BIN_DIR/notification_email.pl --config=$CONF_DIR/$NSP_CONF_FILE --execute