[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] 2 commits: share/debian-edu-config/tools/update-proxy-from-wpad: Ignore missing dconf...

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Sat Dec 9 07:17:33 GMT 2023



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config


Commits:
32d38f7a by Mike Gabriel at 2023-12-09T08:14:07+01:00
share/debian-edu-config/tools/update-proxy-from-wpad: Ignore missing dconf command. (Closes: #1057777).

This might happen on main-server installations without
a desktop environment installed.

- - - - -
a09e5939 by Mike Gabriel at 2023-12-09T08:17:12+01:00
release as 2.12.42

- - - - -


2 changed files:

- debian/changelog
- share/debian-edu-config/tools/update-proxy-from-wpad


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+debian-edu-config (2.12.42) unstable; urgency=medium
+
+  * share/debian-edu-config/tools/update-proxy-from-wpad: Ignore missing dconf
+    command. (Closes: #1057777). It might be missing on main-server installations
+    where no desktop environment is installed.
+
+ -- Mike Gabriel <sunweaver at debian.org>  Sat, 09 Dec 2023 08:15:45 +0100
+
 debian-edu-config (2.12.41) unstable; urgency=medium
 
   [ Guido Berhoerster ]


=====================================
share/debian-edu-config/tools/update-proxy-from-wpad
=====================================
@@ -97,6 +97,13 @@ update_apt_conf() {
 }
 
 update_dconf() {
+	if ! command -v dconf >/dev/null; then
+		# If the dconf command is not install, let's ignore it.
+		# This might happen on main-server installations without
+		# a desktop environment installed.
+		return 0
+	fi
+
 	proxy_host="${http_proxy#*://}"
 	proxy_port="${proxy_host##*:}"
 	proxy_host="${proxy_host%:*}"



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/efdd9bfd23ca12eeb9bf50ab9d51ff18e48fa0c4...a09e593913607525838a5ea70213ab3fa428ff0e

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/efdd9bfd23ca12eeb9bf50ab9d51ff18e48fa0c4...a09e593913607525838a5ea70213ab3fa428ff0e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20231209/defc6d49/attachment-0001.htm>


More information about the debian-edu-commits mailing list