[freeside-commits] freeside/bin mapsecrets2access_user,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Wed Aug 30 09:24:15 PDT 2006
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv11211
Modified Files:
mapsecrets2access_user
Log Message:
need a username arg for now... this should make the error message less confusing
Index: mapsecrets2access_user
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/mapsecrets2access_user,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mapsecrets2access_user 19 Jun 2006 12:47:55 -0000 1.3
+++ mapsecrets2access_user 30 Aug 2006 16:24:13 -0000 1.4
@@ -14,7 +14,8 @@
use FS::agent;
$FS::CurrentUser::upgrade_hack = 1;
-adminsuidsetup shift;
+my $user = shift or die &usage;
+adminsuidsetup $user;
my $supergroup = qsearchs('access_group', { 'groupname' => 'Superuser' } );
unless ( $supergroup ) {
@@ -77,3 +78,8 @@
open(MAPSECRETS, ">$mapsecrets") or die $!;
print MAPSECRETS '* secrets'. "\n";
close MAPSECRETS or die $!;
+
+sub usage {
+ die "Usage:\n mapsecrets2access_user user\n";
+}
+
More information about the freeside-commits
mailing list