From ce11defad5298448b5c62c7e40fa1d0351f2af8a Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 14 Apr 1999 07:58:39 +0000 Subject: [PATCH] export getsecrets from FS::UID instead of calling it explicitly --- bin/fs-setup | 11 +++++++---- site_perl/UID.pm | 9 ++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/bin/fs-setup b/bin/fs-setup index b7d4a1889..d21b41d3d 100755 --- a/bin/fs-setup +++ b/bin/fs-setup @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: fs-setup,v 1.16 1999-02-28 19:44:16 ivan Exp $ +# $Id: fs-setup,v 1.17 1999-04-14 07:58:39 ivan Exp $ # # ivan@sisd.com 97-nov-8,9 # @@ -32,7 +32,10 @@ # fix radius attributes ivan@sisd.com 98-sep-27 # # $Log: fs-setup,v $ -# Revision 1.16 1999-02-28 19:44:16 ivan +# Revision 1.17 1999-04-14 07:58:39 ivan +# export getsecrets from FS::UID instead of calling it explicitly +# +# Revision 1.16 1999/02/28 19:44:16 ivan # constructors s/create/new/ pointed out by "Bao C. Ha" # # Revision 1.15 1999/02/27 21:06:21 ivan @@ -82,14 +85,14 @@ BEGIN { $FS::Record::setup_hack = 1; } use strict; use DBI; use FS::dbdef; -use FS::UID qw(adminsuidsetup datasrc checkeuid); +use FS::UID qw(adminsuidsetup datasrc checkeuid getsecrets); use FS::Record; use FS::cust_main_county; die "Not running uid freeside!" unless checkeuid(); my $user = shift or die &usage; -FS::UID::getsecrets $user; +getsecrets($user); #needs to match FS::Record my($dbdef_file) = "/usr/local/etc/freeside/dbdef.". datasrc; diff --git a/site_perl/UID.pm b/site_perl/UID.pm index ad7c89dd5..889ccb65f 100644 --- a/site_perl/UID.pm +++ b/site_perl/UID.pm @@ -15,7 +15,7 @@ use FS::Conf; @ISA = qw(Exporter); @EXPORT_OK = qw(checkeuid checkruid swapuid cgisuidsetup - adminsuidsetup getotaker dbh datasrc); + adminsuidsetup getotaker dbh datasrc getsecrets ); $freeside_uid = scalar(getpwnam('freeside')); @@ -241,7 +241,7 @@ coderef into the hash %FS::UID::callback : =head1 VERSION -$Id: UID.pm,v 1.10 1999-04-12 22:41:09 ivan Exp $ +$Id: UID.pm,v 1.11 1999-04-14 07:58:39 ivan Exp $ =head1 BUGS @@ -287,7 +287,10 @@ inlined suidsetup ivan@sisd.com 98-sep-12 $Log: UID.pm,v $ -Revision 1.10 1999-04-12 22:41:09 ivan +Revision 1.11 1999-04-14 07:58:39 ivan +export getsecrets from FS::UID instead of calling it explicitly + +Revision 1.10 1999/04/12 22:41:09 ivan bugfix; $user is a global (yuck) Revision 1.9 1999/04/12 21:09:39 ivan -- 2.11.0