From: Michael Tremer Date: Thu, 8 Oct 2020 15:38:41 +0000 (+0100) Subject: samba: Migrate configuration from Samba 3.6 to 4.x X-Git-Tag: v2.25-core152~7^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2db43d839e6e01179c4f2450ef3a0c4229cc407b;p=ipfire-2.x.git samba: Migrate configuration from Samba 3.6 to 4.x Signed-off-by: Michael Tremer --- diff --git a/src/paks/samba/update.sh b/src/paks/samba/update.sh index 648b025b7e..76875657b4 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