]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
samba: Migrate configuration from Samba 3.6 to 4.x
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Oct 2020 15:38:41 +0000 (16:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Oct 2020 16:06:15 +0000 (17:06 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/paks/samba/update.sh

index 648b025b7edd701cb69e253f2be18a2e22e572c3..76875657b49e89e3c8c5476babb51326ffc8a74d 100644 (file)
@@ -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