]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/paks/samba/update.sh
samba: Migrate configuration from Samba 3.6 to 4.x
[ipfire-2.x.git] / 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