| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.146.1.el8_10.x86_64 #1 SMP Tue Jul 21 15:46:30 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/postfixadmin/debian/ |
Upload File : |
#!/bin/bash
set -e
if [ "$1" = "configure" ]; then
# configure DB stuff via dbconfig-common
dbc_generate_include=php:/etc/postfixadmin/dbconfig.inc.php
dbc_generate_include_args="-O root:www-data -m 640 -U"
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst
dbc_go postfixadmin $@
fi
# remove legacy apache and lighthttpd configuration symlink,
# conf.d is no longer supported with Apache 2.4
if [ "$(readlink /etc/apache2/conf.d/postfixadmin)" = "../../postfixadmin/apache.conf" ]; then
rm -f /etc/apache2/conf.d/postfixadmin
fi
if [ "$(readlink /etc/lighttpd/conf-available/postfixadmin)" = "../../postfixadmin/lighttpd.conf" ]; then
rm -f /etc/lighttpd/conf-available/postfixadmin
fi
# Try and avoid templates_c being in /usr/share/postfixadmin and ensure it's writeable by the webserver
if [ ! -d /var/cache/postfixadmin ]; then
mkdir -p /var/cache/postfixadmin
chown www-data:root /var/cache/postfixadmin
chmod 700 /var/cache/postfixadmin
ln -s /var/cache/postfixadmin /usr/share/postfixadmin/templates_c
fi
# See : https://sourceforge.net/p/postfixadmin/bugs/376/ - remove any existing templates_c files on upgrade.
if [ -d /usr/share/postfixadmin/templates_c ]; then
find /usr/share/postfixadmin/templates_c -type f -delete
fi
if [ -d /usr/share/postfixadmin/templates_c ]; then
chown www-data /usr/share/postfixadmin/templates_c
fi
if [ -d /var/cache/postfixadmin ]; then
find /var/cache/postfixadmin -type f -delete
chown www-data /var/cache/postfixadmin
fi
#DEBHELPER#
exit 0