PostfixAdmin - web based virtual user administration interface for Postfix mail servers https://postfixadmin.github.io/postfixadmin/
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.

26 lines
568 B

  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. # restart the webserver only if we know which one was configured.
  8. if db_get postfixadmin/reconfigure-webserver; then
  9. servers="$RET"
  10. restart=$servers
  11. linkname="postfixadmin"
  12. . /usr/share/wwwconfig-common/restart.sh
  13. fi
  14. if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
  15. . /usr/share/dbconfig-common/dpkg/postrm
  16. dbc_go postfixadmin $@
  17. fi
  18. fi
  19. fi
  20. #DEBHELPER#
  21. exit 0