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.postinst 748B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -e
  3. if [ "$1" = "configure" ]; then
  4. # configure DB stuff via dbconfig-common
  5. dbc_generate_include=php:/etc/postfixadmin/dbconfig.inc.php
  6. dbc_generate_include_args="-O root:www-data -m 640 -U"
  7. . /usr/share/debconf/confmodule
  8. . /usr/share/dbconfig-common/dpkg/postinst
  9. dbc_go postfixadmin $@
  10. fi
  11. # remove legacy apache and lighthttpd configuration symlink,
  12. # conf.d is no longer supported with Apache 2.4
  13. if [ "$(readlink /etc/apache2/conf.d/postfixadmin)" = "../../postfixadmin/apache.conf" ]; then
  14. rm -f /etc/apache2/conf.d/postfixadmin
  15. fi
  16. if [ "$(readlink /etc/lighttpd/conf-available/postfixadmin)" = "../../postfixadmin/lighttpd.conf" ]; then
  17. rm -f /etc/lighttpd/conf-available/postfixadmin
  18. fi
  19. #DEBHELPER#
  20. exit 0