[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Fix cfengine3 related cleanup code (remove and purge cases).

WolfgangSchweer gitlab at salsa.debian.org
Thu Jul 26 12:07:02 BST 2018


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


Commits:
83931150 by Wolfgang Schweer at 2018-07-26T13:03:16+02:00
Fix cfengine3 related cleanup code (remove and purge cases).

This will now hopefully handle all possible cfengine3/debian-edu-config
install/remove/purge combinations like expected.

- - - - -


2 changed files:

- debian/changelog
- debian/debian-edu-config.postrm


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debian-edu-config (2.10.33) UNRELEASED; urgency=medium
+
+  * debian/debian-edu-config.postrm:
+    - Fix cfengine3 related cleanup code (remove and purge cases).
+
+ -- Wolfgang Schweer <wschweer at arcor.de>  Thu, 26 Jul 2018 13:01:48 +0200
+
 debian-edu-config (2.10.32) unstable; urgency=medium
 
   [ Wolfgang Schweer ]


=====================================
debian/debian-edu-config.postrm
=====================================
--- a/debian/debian-edu-config.postrm
+++ b/debian/debian-edu-config.postrm
@@ -18,6 +18,11 @@ case "$1" in
 	    dpkg-divert --package debian-edu-config --rename --remove /usr/bin/gtick
 	    rm /usr/bin/gtick.ltsp
 	fi
+	if [ -e /var/lib/cfengine3/inputs/debian-edu ] ; then
+	    rm -rf /var/lib/cfengine3/inputs/debian-edu
+	    rm -rf /var/lib/cfengine3/inputs/
+	    mkdir /var/lib/cfengine3/inputs/
+	fi
 	;;
     purge)
 	# Generated in the postinst
@@ -36,6 +41,7 @@ case "$1" in
 	if [ -e /var/lib/cfengine3/inputs/debian-edu ] ; then
 	    rm -rf /var/lib/cfengine3/inputs/debian-edu
 	    rm -rf /var/lib/cfengine3/inputs/
+	    mkdir /var/lib/cfengine3/inputs/
 	fi
 	if [ -e /var/lib/cfengine3/policy_server.dat ] ; then
 	    rm /var/lib/cfengine3/policy_server.dat



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

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/commit/83931150ca2846654e7c9932de88dd24a827134e
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/20180726/eacbc7a6/attachment-0001.html>


More information about the debian-edu-commits mailing list