1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-26 10:03:23 -05:00

Make sure normal users have access to /usr/sbin so they can use divert.

This commit is contained in:
freesource 2001-10-14 20:46:52 +00:00
parent 89d8f3f6d5
commit 240bf66693
2 changed files with 8 additions and 4 deletions

View File

@ -22,6 +22,10 @@
use strict; use strict;
use File::Basename; use File::Basename;
my $sbin = grep(/\/usr\/sbin/,$ENV{'PATH'});
if ($sbin == 0) {
$ENV{'PATH'} = "/usr/sbin:" . $ENV{'PATH'};
}
# You will need to get swim at http://www.sourceforge.net/projects/avd # You will need to get swim at http://www.sourceforge.net/projects/avd
my $home = "$ENV{HOME}/.gbootroot"; my $home = "$ENV{HOME}/.gbootroot";
@ -795,8 +799,8 @@ sub start_up {
home_builder("$home_yard_replacements/etc"); home_builder("$home_yard_replacements/etc");
} }
print STDERR "Everything is in order, but it never hurts to rebuild swim " #print STDERR "Everything is in order, but it never hurts to rebuild swim "
. "with --rebuilddb if you haven't done it in awhile\n"; # . "with --rebuilddb if you haven't done it in awhile\n";
} # end start_up } # end start_up

View File

@ -720,8 +720,8 @@ sub start_up {
home_builder("$home_yard_replacements/etc"); home_builder("$home_yard_replacements/etc");
} }
print "Everything is in order, but it never hurts to rebuild swim " . # print "Everything is in order, but it never hurts to rebuild swim " .
"with --rebuilddb\n"; # "with --rebuilddb\n";
} # end start_up } # end start_up