samba: Add support for custom configuration changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-11-09 18:43:15 +00:00
parent 0e42d81285
commit 1e2c442c9e
3 changed files with 14 additions and 1 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]