diff options
Diffstat (limited to 'debian/bfh-container.postrm')
-rwxr-xr-x | debian/bfh-container.postrm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/bfh-container.postrm b/debian/bfh-container.postrm index 0af1095..e53463e 100755 --- a/debian/bfh-container.postrm +++ b/debian/bfh-container.postrm @@ -13,6 +13,16 @@ case "${1}" in do dpkg-divert --package bfh-container --quiet --remove --rename --divert "/usr/lib/container/divert/${FILE}.orig" "/usr/sbin/${FILE}" done + + if [ -d /usr/lib/container ] + then + if [ -d /usr/lib/container/divert ] + then + rmdir --ignore-fail-on-non-empty /usr/lib/container/divert > /dev/null 2>&1 + fi + + rmdir --ignore-fail-on-non-empty /usr/lib/container > /dev/null 2>&1 + fi ;; purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |