From: tolimar Date: Wed, 7 Sep 2011 12:03:22 +0000 (+0000) Subject: Only call ucf on purge if it's available X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e7a1884417c2b774159d7db0d4dff154e2995507;p=pkg-nagvis.git Only call ucf on purge if it's available git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1943 98d490a6-b407-0410-aaaa-fdee166ba3f5 --- diff --git a/debian/changelog b/debian/changelog index 54855df..1a4ea0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,11 @@ -nagvis (1:1.4.6-2) UNRELEASED; urgency=low +nagvis (1:1.4.6-2) UNRELEASED; urgency=medium * NOT RELEASED YET * Add myself to uploaders + * Only call ucf on purge if it's available (Closes: #620037) + * Set urgency to medium due to RC bug fix - -- Alexander Reichle-Schmehl Wed, 07 Sep 2011 13:57:21 +0200 + -- Alexander Reichle-Schmehl Wed, 07 Sep 2011 14:02:20 +0200 nagvis (1:1.4.6-1.1) unstable; urgency=low diff --git a/debian/postrm b/debian/postrm index 3535fed..40263c6 100644 --- a/debian/postrm +++ b/debian/postrm @@ -41,7 +41,9 @@ esac if [ "$1" = "purge" ]; then for file in apache.conf nagvis.ini.php; do rm -f /etc/nagvis/$file - ucf --debconf-ok --purge /etc/nagvis/$file + if [ -x /usr/bin/ucf ] ; then + /usr/bin/ucf --debconf-ok --purge /etc/nagvis/$file + fi done #if [ -e /etc/apache2/conf.d/nagvis.conf ]; then