[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Fix debian/debian-edu-config.postinst to avoid failing upon upgrades

WolfgangSchweer gitlab at salsa.debian.org
Sun Nov 18 11:42:36 GMT 2018


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


Commits:
d0ab391f by Wolfgang Schweer at 2018-11-18T11:41:35Z
Fix debian/debian-edu-config.postinst to avoid failing upon upgrades

Make wpad-proxy-update related code conditional.
Don't complain about non-existing wpad-proxy-update file.

- - - - -


2 changed files:

- debian/changelog
- debian/debian-edu-config.postinst


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+debian-edu-config (2.10.47) UNRELEASED; urgency=medium
+
+  * Fix debian/debian-edu-config.postinst to avoid failing upon upgrades:
+    - Make wpad-proxy-update related code conditional.
+    - Don't complain about non-existing wpad-proxy-update file.
+
+ -- Wolfgang Schweer <wschweer at arcor.de>  Sun, 18 Nov 2018 12:26:47 +0100
+
 debian-edu-config (2.10.46) unstable; urgency=medium
 
   [ Wolfgang Schweer ]


=====================================
debian/debian-edu-config.postinst
=====================================
@@ -198,11 +198,12 @@ configure)
 
     # The scripts in /etc/network/if-up.d need to be executable.
     chmod +x /etc/network/if-up.d/hostname
-    chmod +x /etc/network/if-up.d/wpad-proxy-update
     # Drop wpad-proxy-update for the main server, it makes no sense to run the
     # script at this time.
     if egrep -q "(Main-Server)" /etc/debian-edu/config ; then
-        rm /etc/network/if-up.d/wpad-proxy-update
+        rm -f /etc/network/if-up.d/wpad-proxy-update
+    else
+	chmod +x /etc/network/if-up.d/wpad-proxy-update
     fi
 
     # silence dovecot's message: if you have trouble with authentication failures,



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/d0ab391f9e5d844b29171f2c9ee7f58bbe22b9d5

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/d0ab391f9e5d844b29171f2c9ee7f58bbe22b9d5
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/20181118/f54e4f8c/attachment.html>


More information about the debian-edu-commits mailing list