summaryrefslogtreecommitdiff
path: root/FS/FS/UID.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-02-11 18:20:14 -0800
committerIvan Kohler <ivan@freeside.biz>2015-02-11 18:20:14 -0800
commitc463da07ef97b754c7fcba0b154517e0b004f797 (patch)
treecf7ac6fbf67eb202cca9680e42d36173d14a31bd /FS/FS/UID.pm
parent915ae2a5a5cbe3bf70a9be5024ef6323c63f47b0 (diff)
remove vestigial code for ancient multi-db/mapsecrets operation
Diffstat (limited to 'FS/FS/UID.pm')
-rw-r--r--FS/FS/UID.pm12
1 files changed, 3 insertions, 9 deletions
diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm
index 9c52f08..f41735d 100644
--- a/FS/FS/UID.pm
+++ b/FS/FS/UID.pm
@@ -74,7 +74,6 @@ sub adminsuidsetup {
sub forksuidsetup {
my $user = shift;
- my $olduser = $user;
warn "$me forksuidsetup starting for $user\n" if $DEBUG;
if ( $FS::CurrentUser::upgrade_hack ) {
@@ -88,7 +87,7 @@ sub forksuidsetup {
env_setup();
- db_setup($olduser);
+ db_setup();
callback_setup();
@@ -118,16 +117,11 @@ sub env_setup {
}
sub db_setup {
- my $olduser = shift;
-
croak "Not running uid freeside (\$>=$>, \$<=$<)\n" unless checkeuid();
warn "$me forksuidsetup connecting to database\n" if $DEBUG;
- if ( $FS::CurrentUser::upgrade_hack && $olduser ) {
- $dbh = &myconnect($olduser);
- } else {
- $dbh = &myconnect();
- }
+ $dbh = &myconnect();
+
warn "$me forksuidsetup connected to database with handle $dbh\n" if $DEBUG;
warn "$me forksuidsetup loading schema\n" if $DEBUG;