mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
selftest/Samba3: export ENVNAME
This is used by selftest/in_screen. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
c16afddeef
commit
a32366e973
@ -166,7 +166,9 @@ sub check_env($$)
|
||||
sub setup_env($$$)
|
||||
{
|
||||
my ($self, $envname, $path) = @_;
|
||||
|
||||
|
||||
$ENV{ENVNAME} = $envname;
|
||||
|
||||
if (defined($self->{vars}->{$envname})) {
|
||||
return $self->{vars}->{$envname};
|
||||
}
|
||||
@ -643,6 +645,8 @@ sub check_or_start($$$$$) {
|
||||
|
||||
$ENV{UID_WRAPPER} = "1";
|
||||
|
||||
$ENV{ENVNAME} = "$ENV{ENVNAME}.nmbd";
|
||||
|
||||
if ($nmbd ne "yes") {
|
||||
$SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub {
|
||||
my $signame = shift;
|
||||
@ -693,6 +697,8 @@ sub check_or_start($$$$$) {
|
||||
|
||||
$ENV{UID_WRAPPER} = "1";
|
||||
|
||||
$ENV{ENVNAME} = "$ENV{ENVNAME}.winbindd";
|
||||
|
||||
if ($winbindd ne "yes") {
|
||||
$SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub {
|
||||
my $signame = shift;
|
||||
@ -745,6 +751,8 @@ sub check_or_start($$$$$) {
|
||||
|
||||
$ENV{UID_WRAPPER} = "1";
|
||||
|
||||
$ENV{ENVNAME} = "$ENV{ENVNAME}.smbd";
|
||||
|
||||
if ($smbd ne "yes") {
|
||||
$SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub {
|
||||
my $signame = shift;
|
||||
|
Loading…
Reference in New Issue
Block a user