[debian-edu-commits] debian-edu/ 02/04: Add squid fix to share/debian-edu-config/tools/run-at-firstboot.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Tue Nov 1 19:54:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit 89c0b8f557bd2e1042a33f90009c47975f225fc2
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Tue Nov 1 20:43:03 2016 +0100

    Add squid fix to share/debian-edu-config/tools/run-at-firstboot.
---
 share/debian-edu-config/tools/run-at-firstboot | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/share/debian-edu-config/tools/run-at-firstboot b/share/debian-edu-config/tools/run-at-firstboot
index de935e0..bbca94d 100755
--- a/share/debian-edu-config/tools/run-at-firstboot
+++ b/share/debian-edu-config/tools/run-at-firstboot
@@ -66,6 +66,14 @@ if [ -x /usr/sbin/sitesummary-client ] ; then
     fi
 fi
 
+# Fix squid setup after first boot (cf.squid seems to do it only randomly).
+if echo "$PROFILE" | grep -q Main-Server && \
+    ! [ -d /var/spool/squid/00 ] ; then
+    /usr/sbin/dpkg-reconfigure squid
+# Update Squid to use all the available space (aka 80% of the partition)
+    /usr/share/debian-edu-config/tools/squid-update-cachedir /etc/squid/squid-debian-edu.conf
+fi
+
 # Update PXE setup on Main-server with proxy values set in environment
 # to make sure the proxy values are passed on to clients.  When set up
 # from cfengine, the proxy values are not passed on and missing from

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list