handle domestic_prefix of 0, RT#11390
[freeside.git] / FS / bin / freeside-daily
index ee3cda6..3e4843b 100755 (executable)
@@ -12,6 +12,10 @@ getopts("p:a:d:vl:sy:nmrkg:u", \%opt);
 my $user = shift or die &usage;
 adminsuidsetup $user;
 
+#you can skip this by not having a NetworkMonitoringSystem configured
+use FS::Cron::nms qw(nms_report);
+nms_report(%opt);
+
 #you can skip this by setting the disable_cron_billing config
 use FS::Cron::bill qw(bill);
 bill(%opt);
@@ -54,6 +58,11 @@ backup_scp();
 use FS::Cron::rt_tasks qw(rt_escalate);
 rt_escalate(%opt);
 
+my $deldir = "$FS::UID::cache_dir/cache.$FS::UID::datasrc/";
+unlink <${deldir}.invoice*>;
+unlink <${deldir}.letter*>;
+unlink <${deldir}.CGItemp*>;
+
 ###
 # subroutines
 ###