Skip to content

Commit

Permalink
Removing /etc/live/boot if empty on purge in postrm.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Aug 24, 2012
1 parent 339243f commit b75baa7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions debian/live-boot.postrm
@@ -0,0 +1,23 @@
#!/bin/sh

set -e

case "${1}" in
purge)
rmdir --ignore-fail-on-non-empty /etc/live/boot > /dev/null 2>&1 || true
rmdir --ignore-fail-on-non-empty /etc/live > /dev/null 2>&1 || true
;;

remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

;;

*)
echo "postrm called with unknown argument \`${1}'" >&2
exit 1
;;
esac

#DEBHELPER#

exit 0

0 comments on commit b75baa7

Please sign in to comment.