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

@@ -4,3 +4,4 @@
/var/ipfire/samba/settings
/var/ipfire/samba/shares
/var/ipfire/samba/smb.conf
/var/ipfire/samba/smb.conf.local

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]

View File

@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = samba
PAK_VER = 73
PAK_VER = 74
DEPS = avahi cups libtirpc krb5 perl-Parse-Yapp