]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
samba: Migrate older backups too and use standard update mechasism
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Oct 2020 15:40:24 +0000 (16:40 +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/install.sh
src/paks/samba/update.sh

index b7a2fc1cc8f6df80b7cd5e1b4d3d50e8cf7c74c6..55525d08a1d830b3a0e727870f8c272363e87a1f 100644 (file)
@@ -32,4 +32,11 @@ 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 "s/^security = share$/security = user/"
+
+# Start the service
 /usr/local/bin/sambactrl smbstart
index 76875657b49e89e3c8c5476babb51326ffc8a74d..99776659c31ca813c685a8c1c983df98896933e9 100644 (file)
 # along with IPFire; if not, write to the Free Software                    #
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
 #                                                                          #
-# Copyright (C) 2010 IPFire-Team <info@ipfire.org>.                        #
+# Copyright (C) 2007-2020 IPFire-Team <info@ipfire.org>.                   #
 #                                                                          #
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
+extract_backup_includes
 ./uninstall.sh
-
-# If the wbpriv group does not exist yet, then create it and put squid
-# into it.
-if ! getent group wbpriv >/dev/null; then
-       groupadd -g 88 wbpriv
-       usermod -a -G wbpriv squid
-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 "s/^security = share$/security = user/"
-
-/usr/local/bin/sambactrl smbstart
+./install.sh