don't skip vacuuming when using -k, RT#5258
authorivan <ivan>
Tue, 29 Dec 2009 01:40:51 +0000 (01:40 +0000)
committerivan <ivan>
Tue, 29 Dec 2009 01:40:51 +0000 (01:40 +0000)
FS/bin/freeside-daily

index cbcbc42..1876dc7 100755 (executable)
@@ -17,15 +17,13 @@ bill(%opt);
 #what to do about the below when using -m?  that is the question.
 
 unless ( $opt{k} ) {
-
   use FS::Cron::notify qw(notify_flat_delay);
   notify_flat_delay(%opt);
-
-  use FS::Cron::vacuum qw(vacuum);
-  vacuum();
-
 }
 
+use FS::Cron::vacuum qw(vacuum);
+vacuum();
+
 #you can skip this just by not having the config
 use FS::Cron::backup qw(backup_scp);
 backup_scp();
@@ -93,7 +91,7 @@ the bill and collect methods of a cust_main object.  See L<FS::cust_main>.
 
   -r: Multi-process mode dry run option
 
-  -k: skip notify_flat_delay and vacuum
+  -k: skip notify_flat_delay
 
 user: From the mapsecrets file - see config.html from the base documentation