From 8eeae1d3db44f3d7fba0e8fa3f2d56097b99089e Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 26 Mar 2014 01:15:14 -0700 Subject: [PATCH] Check before removing /var/lib/heimdal-history --- debian/postrm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postrm b/debian/postrm index b6cf353..d5812bf 100755 --- a/debian/postrm +++ b/debian/postrm @@ -13,7 +13,9 @@ fi # Remove the directory for the password history database on remove if empty. if [ "$1" = purge ] || [ "$1" = remove ] ; then - rmdir --ignore-fail-on-non-empty /var/lib/heimdal-history + if [ -d /var/lib/heimdal-history ] ; then + rmdir --ignore-fail-on-non-empty /var/lib/heimdal-history + fi fi #DEBHELPER# -- 2.39.2