mirror of
https://github.com/fspc/gbootroot.git
synced 2026-10-30 13:26:08 -04:00
Added /sbin and /usr/sbin in case non-root users don't have this path.
This commit is contained in:
@@ -89,6 +89,16 @@ BEGIN {
|
|||||||
unshift(@INC,"/usr/share/perl5");
|
unshift(@INC,"/usr/share/perl5");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $sbin = grep(/\/usr\/sbin/,$ENV{'PATH'});
|
||||||
|
if ($sbin == 0) {
|
||||||
|
$ENV{'PATH'} = "/usr/sbin:" . $ENV{'PATH'};
|
||||||
|
}
|
||||||
|
|
||||||
|
$sbin = grep(/\/sbin/,$ENV{'PATH'});
|
||||||
|
if ($sbin == 0) {
|
||||||
|
$ENV{'PATH'} = "/sbin:" . $ENV{'PATH'};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user