Commit b6dbae92 authored by Mike Hibler's avatar Mike Hibler

avoid a samba startup file renaming issue

parent 1f286f27
......@@ -889,8 +889,16 @@ Phase "samba", "Setting up Samba", sub {
};
if ($ELABINELAB) {
Phase "starting", "Starting Samba", sub {
my $sscript;
if (-x "$RCDIR/samba.sh") {
$sscript = "samba.sh";
} elsif (-x "$RCDIR/samba") {
$sscript = "samba";
} else {
PhaseFail("No samba startup script!?");
}
DoneIfExists("$VARRUN/smbd.pid");
ExecQuietFatal("$RCDIR/samba.sh start");
ExecQuietFatal("$RCDIR/$sscript start");
};
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment