[07/54] samba: Update SECURITY option in settings, too

Message ID 20201013160812.27754-7-michael.tremer@ipfire.org
State Accepted
Commit 65deced1823daf001a86a769a3bdff562201a87d
Headers show
Series [01/54] samba: Migrate configuration from Samba 3.6 to 4.x | expand

Commit Message

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

Patch

diff --git a/src/paks/samba/install.sh b/src/paks/samba/install.sh
index 7b81be7c1..1cd6a1156 100644
--- a/src/paks/samba/install.sh
+++ b/src/paks/samba/install.sh
@@ -40,5 +40,8 @@  sed -i /var/ipfire/samba/smb.conf \
 	-e "/^syslog/d" \
 	-e "s/^security = share$/security = user/"
 
+sed -i /var/ipfire/samba/settings \
+	-e "s/^SECURITY=share/SECURITY=user/"
+
 # Start the service
 /usr/local/bin/sambactrl smbstart