]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
samba: Add support for custom configuration changes
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Nov 2020 18:43:15 +0000 (18:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Nov 2020 18:43:15 +0000 (18:43 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/includes/samba
html/cgi-bin/samba.cgi
lfs/samba

index 1d2166ca56ebd92b7226695a132e79651d693f09..63d61a435d751c7e1a0b591aed7ccfcb87f7336b 100644 (file)
@@ -4,3 +4,4 @@
 /var/ipfire/samba/settings
 /var/ipfire/samba/shares
 /var/ipfire/samba/smb.conf
+/var/ipfire/samba/smb.conf.local
index ec41adc5dd0506b986897074567989902e2b8fc5..6a61300a2ae93b23006f99091048445c7f8336dd 100644 (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]
index 92a6b11210f0b15fdbc8e081617490a72eae2838..29dfec2e92e985f814d7fea82b1d3079216ab017 100644 (file)
--- a/lfs/samba
+++ b/lfs/samba
@@ -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