[freeside-commits] freeside/FS/bin freeside-daily,1.35,1.36
Ivan,,,
ivan at wavetail.420.am
Mon Dec 28 17:38:43 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv29644
Modified Files:
freeside-daily
Log Message:
add -u option for vacuuming, RT#5258
Index: freeside-daily
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-daily,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- freeside-daily 16 Nov 2009 02:27:12 -0000 1.35
+++ freeside-daily 29 Dec 2009 01:38:41 -0000 1.36
@@ -7,7 +7,7 @@
&untaint_argv; #what it sounds like (eww)
use vars qw(%opt);
-getopts("p:a:d:vl:sy:nmrkg:", \%opt);
+getopts("p:a:d:vl:sy:nmrkg:u", \%opt);
my $user = shift or die &usage;
adminsuidsetup $user;
@@ -36,14 +36,14 @@
expire_user_pref();
unless ( $opt{k} ) {
-
use FS::Cron::notify qw(notify_flat_delay);
notify_flat_delay(%opt);
+}
- #Pg 8.1+ auto-vaccums, 7.4 w/postgresql-contrib
- #use FS::Cron::vacuum qw(vacuum);
- #vacuum();
-
+#debian Pg 8.1+ auto-vaccums, 7.4 w/postgresql-contrib
+if ( $opt{u} ) {
+ use FS::Cron::vacuum qw(vacuum);
+ vacuum();
}
#you can skip this just by not having the config
@@ -116,7 +116,9 @@
-r: Multi-process mode dry run option
- -k: skip notify_flat_delay and vacuum
+ -k: skip notify_flat_delay
+
+ -u: Do a vacuum (starting with version 1.9, this is not run by default).
user: From the mapsecrets file - see config.html from the base documentation
More information about the freeside-commits
mailing list