Properly remove /etc/davical/.keep/keepme

This commit is contained in:
Florian Schlichting 2016-01-03 18:56:12 +01:00
parent ffdc13183f
commit b8512ad520
3 changed files with 20 additions and 4 deletions

View File

@ -14,4 +14,11 @@ case $1 in
;;
esac
dpkg-maintscript-helper rm_conffile /etc/davical/.keep/keepme 1.1.4-1~ davical -- "$@"
#DEBHELPER#
# remove leftover /etc/davical/.keep directory, if empty (cf. #584185)
[ -d /etc/davical/.keep ] && rmdir --ignore-fail-on-non-empty /etc/davical/.keep
exit 0

10
debian/davical.postrm vendored
View File

@ -7,9 +7,11 @@ PACKAGE=::package::
[ -n "${DEBUG}" ] && echo "PostRM Parameters: $@"
case $1 in
purge)
;;
esac
dpkg-maintscript-helper rm_conffile /etc/davical/.keep/keepme 1.1.4-1~ davical -- "$@"
#DEBHELPER#
# remove leftover /etc/davical/.keep directory, if empty (cf. #584185)
[ -d /etc/davical/.keep ] && rmdir --ignore-fail-on-non-empty /etc/davical/.keep
exit 0

7
debian/davical.preinst vendored Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
dpkg-maintscript-helper rm_conffile /etc/davical/.keep/keepme 1.1.4-1~ davical -- "$@"
#DEBHELPER#