]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/paks/samba/install.sh
samba: Remove socket options
[ipfire-2.x.git] / src / paks / samba / install.sh
index b7a2fc1cc8f6df80b7cd5e1b4d3d50e8cf7c74c6..7b81be7c1864ff2d8deecfc1bff4814f6b702385 100644 (file)
@@ -32,4 +32,13 @@ fi
 
 extract_files
 restore_backup ${NAME}
+
+# Migrate configuration from Samba 3.6 to 4.x
+sed -i /var/ipfire/samba/smb.conf \
+       -e "/^display charset =/d" \
+       -e "/^socket options =/d" \
+       -e "/^syslog/d" \
+       -e "s/^security = share$/security = user/"
+
+# Start the service
 /usr/local/bin/sambactrl smbstart