]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/paks/samba/update.sh
squid: Add NTLM authentication against Windows Active Directory servers.
[people/pmueller/ipfire-2.x.git] / src / paks / samba / update.sh
index 89c40d0d7c5d3dd57b5944f3af4977d5f8d76760..648b025b7edd701cb69e253f2be18a2e22e572c3 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) 2007 IPFire-Team <info@ipfire.org>.                        #
+# Copyright (C) 2010 IPFire-Team <info@ipfire.org>.                        #
 #                                                                          #
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
 ./uninstall.sh
-./install.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}
+echo "passdb backend = smbpasswd" >> /var/ipfire/samba/smb.conf
+/usr/local/bin/sambactrl smbstart