public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 1e2c442c9e2d11590af214bdddde5cf0506e0a52
Date: Mon, 09 Nov 2020 18:46:15 +0000	[thread overview]
Message-ID: <4CVKhR2hC5z2xcH@people01.haj.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2469 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, master has been updated
       via  1e2c442c9e2d11590af214bdddde5cf0506e0a52 (commit)
      from  0e42d81285766431f20bd92218d9c427162c96dc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1e2c442c9e2d11590af214bdddde5cf0506e0a52
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Mon Nov 9 18:43:15 2020 +0000

    samba: Add support for custom configuration changes
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/backup/includes/samba |  1 +
 html/cgi-bin/samba.cgi       | 12 ++++++++++++
 lfs/samba                    |  2 +-
 3 files changed, 14 insertions(+), 1 deletion(-)

Difference in files:
diff --git a/config/backup/includes/samba b/config/backup/includes/samba
index 1d2166ca5..63d61a435 100644
--- a/config/backup/includes/samba
+++ b/config/backup/includes/samba
@@ -4,3 +4,4 @@
 /var/ipfire/samba/settings
 /var/ipfire/samba/shares
 /var/ipfire/samba/smb.conf
+/var/ipfire/samba/smb.conf.local
diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi
index ec41adc5d..6a61300a2 100644
--- a/html/cgi-bin/samba.cgi
+++ b/html/cgi-bin/samba.cgi
@@ -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]
diff --git a/lfs/samba b/lfs/samba
index 92a6b1121..29dfec2e9 100644
--- 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
 


hooks/post-receive
--
IPFire 2.x development tree

                 reply	other threads:[~2020-11-09 18:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CVKhR2hC5z2xcH@people01.haj.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox