diff debian/postrm @ 466:e769484a87c3 noffle

[svn] fixed removal of old config dir
author godisch
date Sat, 26 Jul 2003 08:37:07 +0100
parents 7e0c7dd29d53
children 84c15e2195b5
line wrap: on
line diff
--- a/debian/postrm	Sat Jul 26 08:32:29 2003 +0100
+++ b/debian/postrm	Sat Jul 26 08:37:07 2003 +0100
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: postrm 599 2003-06-25 17:00:10Z godisch $
+# $Id: postrm 611 2003-07-26 07:37:07Z godisch $
 
 set -e
 
@@ -14,13 +14,14 @@
 	rm -f /etc/noffle.conf /etc/noffle.conf.old \
 		/etc/news/noffle.conf /etc/news/noffle.conf.old /etc/news/noffle.conf.dpkg-* \
 		/etc/default/noffle /etc/default/noffle.old /etc/default/noffle.dpkg-*
-	rm -rf /etc/news/noffle.old /etc/noffle /var/spool/noffle
 	if [ -e /usr/share/debconf/confmodule ]; then
 		. /usr/share/debconf/confmodule
 		db_purge
 	fi
 	ucf --purge /etc/default/noffle < /dev/tty
 	ucf --purge /etc/news/noffle.conf < /dev/tty
+	rmdir --ignore-fail-on-non-empty /etc/news/noffle /etc/news/noffle.old
+	rm -rf /var/spool/noffle
 fi
 
 exit 0