You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

postfixadmin.postrm 612B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. set -e
  3. if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
  4. if [ -f /usr/share/debconf/confmodule ]; then
  5. . /usr/share/debconf/confmodule
  6. db_version 2.0
  7. if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
  8. . /usr/share/dbconfig-common/dpkg/postrm
  9. dbc_go postfixadmin $@
  10. fi
  11. fi
  12. if [ "$1" = "purge" ]; then
  13. rm -f /etc/postfixadmin/dbconfig.inc.php
  14. if which ucf >/dev/null 2>&1; then
  15. ucf --purge /etc/postfixadmin/dbconfig.inc.php
  16. fi
  17. db_purge || true
  18. fi
  19. fi
  20. #DEBHELPER#
  21. exit 0