Merge remote-tracking branch 'origin/master' into next

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-11-13 18:20:59 +00:00
7 changed files with 22 additions and 3 deletions

View File

@@ -835,6 +835,18 @@ if ($sambasettings{'ENCRYPTION'} =~ m/(desired|required)/) {
print FILE "smb encrypt = $1\n";
}
# Include smb.conf.local
if (-e "${General::swroot}/samba/smb.conf.local") {
open(LOCAL, "<${General::swroot}/samba/smb.conf.local");
# Copy content line by line
while (<LOCAL>) {
print FILE $_;
}
close(LOCAL);
}
print FILE <<END;
# Export all printers
[printers]