[debian-edu-commits] debian-edu/ 01/02: postinst: keep link removal; move all other iceweasel/firefox cleanups to postinst.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Sun Jul 17 18:49:11 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 2ce3f32a5ca453ccb558a108d7d7e50343bfbac2
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Sun Jul 17 20:43:00 2016 +0200

    postinst: keep link removal; move all other iceweasel/firefox cleanups to postinst.
---
 debian/debian-edu-config.preinst | 28 +++-------------------------
 1 file changed, 3 insertions(+), 25 deletions(-)

diff --git a/debian/debian-edu-config.preinst b/debian/debian-edu-config.preinst
index 5eb5efc..4e6d7ad 100644
--- a/debian/debian-edu-config.preinst
+++ b/debian/debian-edu-config.preinst
@@ -40,31 +40,9 @@ install)
     ;;
 upgrade)
 
-    if dpkg --compare-versions "$2" le "1.818+deb8u1" && [ -e /etc/firefox-esr ] ; then
-	if [ -e /etc/X11/Xsession.d/06debian-edu-iceweasel-ltsp ] ; then
-	    rm /etc/X11/Xsession.d/06debian-edu-iceweasel-ltsp
-        fi
-	if [ -e /etc/apt/apt.conf.d/99-edu-prefer-iceweasel ] ; then
-	    rm /etc/apt/apt.conf.d/99-edu-prefer-iceweasel
-        fi
-	if [ -e /etc/init.d/iceweasel-ldapconf ] ; then
-	    rm /etc/init.d/iceweasel-ldapconf
-        fi
-	if [ -e /etc/cfengine/debian-edu/cf.iceweasel ] ; then
-	    rm /etc/cfengine/debian-edu/cf.iceweasel
-        fi
-	if [ -e /usr/share/debian-edu-config/iceweacel-networked-prefs.js ] ; then
-	    rm /usr/share/debian-edu-config/iceweacel-networked-prefs.js
-        fi
-	if [ -L /etc/iceweasel/pref/debian-edu-networked.js ] ; then
-	    rm /etc/iceweasel/pref/debian-edu-networked.js
-        fi
-	if [ -e /etc/iceweasel/pref/debian-edu-homepage-ldap.js ] ; then
-	    rm /etc/iceweasel/pref/debian-edu-homepage-ldap.js
-        fi
-	if [ -L /etc/firefox-esr/debian-edu-networked.js ] ; then
-	    rm /etc/firefox-esr/debian-edu-networked.js
-        fi
+    # Just in case linking has already been done manually to now obsolete file.
+    if dpkg --compare-versions "$2" le "1.818+deb8u1" && [ -L /etc/firefox-esr/debian-edu-networked.js ] ; then
+	rm /etc/firefox-esr/debian-edu-networked.js
     fi
     ;;
 esac

-- 
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