From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 01/54] samba: Migrate configuration from Samba 3.6 to 4.x Date: Tue, 13 Oct 2020 16:07:19 +0000 Message-ID: <20201013160812.27754-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7513715304855020105==" List-Id: --===============7513715304855020105== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Signed-off-by: Michael Tremer --- src/paks/samba/update.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/paks/samba/update.sh b/src/paks/samba/update.sh index 648b025b7..76875657b 100644 --- a/src/paks/samba/update.sh +++ b/src/paks/samba/update.sh @@ -33,5 +33,10 @@ fi extract_files restore_backup ${NAME} -echo "passdb backend = smbpasswd" >> /var/ipfire/samba/smb.conf + +# Migrate configuration from Samba 3.6 to 4.x +sed -i /var/ipfire/samba/smb.conf \ + -e "/^display charset =/d" \ + -e "s/^security = share$/security = user/" + /usr/local/bin/sambactrl smbstart -- 2.20.1 --===============7513715304855020105==--