[01/54] samba: Migrate configuration from Samba 3.6 to 4.x

Message ID 20201013160812.27754-1-michael.tremer@ipfire.org
State Accepted
Commit 2db43d839e6e01179c4f2450ef3a0c4229cc407b
Headers
Series [01/54] samba: Migrate configuration from Samba 3.6 to 4.x |

Commit Message

Michael Tremer Oct. 13, 2020, 4:07 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/paks/samba/update.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Patch

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