Commit d0ab391f authored by Wolfgang Schweer's avatar Wolfgang Schweer
Browse files

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.
parent 54558af4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
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@arcor.de>  Sun, 18 Nov 2018 12:26:47 +0100

debian-edu-config (2.10.46) unstable; urgency=medium

  [ Wolfgang Schweer ]
+3 −2
Original line number Diff line number Diff line
@@ -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,