@@ -27,20 +27,29 @@ if [ -n "$DB_PMA_ALIAS" ]; then
2727 rm /etc/apache2/conf.d/phpmyadmin.conf
2828 touch /etc/apache2/conf.d/phpmyadmin.inc
2929 fi
30+ $HESTIA /bin/v-change-sys-db-alias ' pma' " $DB_PMA_ALIAS "
31+ fi
32+
33+ if [ -n " $DB_PGA_ALIAS " ]; then
3034 if [ -e " /etc/apache2/conf.d/phppgadmin.conf" ]; then
3135 rm /etc/apache2/conf.d/phppgadmin.conf
3236 touch /etc/apache2/conf.d/phppgadmin.inc
3337 fi
3438 $HESTIA /bin/v-change-sys-db-alias ' pga' " $DB_PGA_ALIAS "
35- $HESTIA /bin/v-change-sys-db-alias ' pma ' " $DB_PMA_ALIAS "
39+
3640fi
3741
3842if [ -n " $MAIL_SYSTEM " ]; then
39-
43+ echo " [ ! ] Update Exim config "
4044 if [ -f " /etc/exim4/exim4.conf.template" ]; then
41- sed -i ' s/^smtp_active_hostname = \${if exists {\/etc\/exim4\/mailhelo\.conf}{\${lookup{\$interface_address}lsearch{\/etc\/exim4\/mailhelo\.conf}{\$value}{\$primary_hostname}}}{\$primary_hostname}}$/smtp_active_hostname = \${lookup dnsdb{ptr=\$interface_address}{\$value}{\$primary_hostname}}/' /etc/exim4/exim4.conf.template
42-
43- sed -i ' s/^ helo_data = \${if exists {\/etc\/exim4\/mailhelo\.conf}{\${lookup{\$sending_ip_address}lsearch{\/etc\/exim4\/mailhelo\.conf}{\$value}{\$primary_hostname}}}{\$primary_hostname}}$/ helo_data = \${lookup dnsdb{ptr=\$sending_ip_address}{\$value}{\$primary_hostname}}/' /etc/exim4/exim4.conf.template
45+ sed -i ' s/^smtp_active_hostname = \${if exists {\/etc\/exim4\/mailhelo\.conf}{\${lookup{\$interface_address}lsearch{\/etc\/exim4\/mailhelo\.conf}{\$value}{\$primary_hostname}}}{\$primary_hostname}}$/smtp_active_hostname = \${lookup dnsdb{>: ptr=\$interface_address}{\${listextract{1}{\$value}}}{\$primary_hostname}}/' /etc/exim4/exim4.conf.template
46+
47+ sed -i ' s/^ helo_data = \${if exists {\/etc\/exim4\/mailhelo\.conf}{\${lookup{\$sending_ip_address}lsearch{\/etc\/exim4\/mailhelo\.conf}{\$value}{\$primary_hostname}}}{\$primary_hostname}}$/ helo_data = \${lookup dnsdb{>: ptr=\$sending_ip_address}{\${listextract{1}{\$value}}}{\$primary_hostname}}/' /etc/exim4/exim4.conf.template
48+
49+ # When 1.5.0 beta was installed
50+ sed -i ' s/^smtp_active_hostname = \${lookup dnsdb{ptr=\$interface_address}{\$value}{\$primary_hostname}}$/smtp_active_hostname = \${lookup dnsdb{>: ptr=\$interface_address}{\${listextract{1}{\$value}}}{\$primary_hostname}}/' /etc/exim4/exim4.conf.template
51+
52+ sed -i ' s/^ helo_data = \${lookup dnsdb{ptr=\$sending_ip_address}{\$value}{\$primary_hostname}}$/ helo_data = \${lookup dnsdb{>: ptr=\$sending_ip_address}{\${listextract{1}{\$value}}}{\$primary_hostname}}/' /etc/exim4/exim4.conf.template
4453 fi
4554
4655 # Clean up legacy mailhelo file
0 commit comments