summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schlüter <bschlueter@posteo.de>2018-01-30 13:57:50 +0100
committerBenjamin Schlüter <bschlueter@posteo.de>2018-01-30 13:57:50 +0100
commit5f80346f743f54a32ba08b547ebb5ed0cfe00fd4 (patch)
tree79de2bd116d59c3a16a84d77686a5704b4b9c469
parent2dec8098d2b436ea78dec78d8e14e40c0905be35 (diff)
downloaditzks-install-script-5f80346f743f54a32ba08b547ebb5ed0cfe00fd4.tar.gz
itzks-install-script-5f80346f743f54a32ba08b547ebb5ed0cfe00fd4.tar.bz2
itzks-install-script-5f80346f743f54a32ba08b547ebb5ed0cfe00fd4.zip
Push part-script for wpad-proxy issue for testing.
-rw-r--r--install-itzks-workstation-wpad-only33
1 files changed, 33 insertions, 0 deletions
diff --git a/install-itzks-workstation-wpad-only b/install-itzks-workstation-wpad-only
new file mode 100644
index 0000000..3ccbb2f
--- /dev/null
+++ b/install-itzks-workstation-wpad-only
@@ -0,0 +1,33 @@
+#!/bin/bash
+# script for installing a Debian Edu Workstation with ITZkS modifications
+
+set -e
+
+
+# Install libpacparser1
+apt-get install libpacparser1
+
+
+# Write new content for /usr/share/debian-edu-config/tools/wpad-extract.
+# Workaround for Debian bug #888829. Probably fixed with debian-edu-config 1.929+deb9u1.
+
+cat <<EOT > /usr/share/debian-edu-config/tools/wpad-extract
+#!/bin/bash
+#
+# Detect proxy URL via WPAD
+#
+# Author: Wolfgang Schweer
+# License: GNU General Public License v2 or later
+
+# This version uses pactester from package libpacparser1.
+
+# Look up one of the www.debian.org IP addresses to avoid hanging on
+# DNS if the skolelinux machines are not connected to the Internet.
+proxy_url=\$(curl -s http://wpad/wpad.dat | pactester -p - \\
+ -u http://130.89.148.14 | awk '{print \$2}' | cut -d';' -f1)
+echo http_proxy=http://\$proxy_url
+EOT
+
+# Run /usr/share/debian-edu-config/tools/update-proxy-from-wpad
+/usr/share/debian-edu-config/tools/update-proxy-from-wpad
+