]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Fixing postfix installation
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 11 Apr 2018 10:21:07 +0000 (12:21 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 11 Apr 2018 10:21:07 +0000 (12:21 +0200)
bin/postinst

index f932402ed7d365fe21be1b78e55918a3cfec561c..6514e1f81f3f1ff904ea38953359047b520d01dc 100644 (file)
@@ -782,9 +782,9 @@ install_postfix() {
        root                    root+${hostname}
        root@localhost          root+${hostname}
        icinga                  icinga+${hostname}
-       icinga@localhost                icinga+${hostname}
+       icinga@localhost        icinga+${hostname}
        nagios                  nagios+${hostname}
-       nagios@localhost                nagios+${hostname}
+       nagios@localhost        nagios+${hostname}
        xymon                   xymon+${hostname}
        xymon@localhost         xymon+${hostname}
 
@@ -802,12 +802,11 @@ install_postfix() {
     for option in "${main_options_remove[@]}" ; do
         echo "Removing postfix option '${option}' ..."
         postconf -X "${option}"
-        #sed -i -e "s/^\\(${option}( |$).*\\)/#\\1/" "/etc/postfix/main.cf"
     done
 
     for option in "${main_options_set[@]}" ; do
         echo "Setting postfix option: '${option}' ..."
-        postfix -e "${option}"
+        postconf -e "${option}"
     done
 
     mkdir -pv /var/tmp