install_postfix_advanced.sh: enable postfix firewall 'postfwd' at boot time.
This commit is contained in:
parent
25d0925d06
commit
c7853702de
@ -976,6 +976,25 @@ else
|
|||||||
echo_skipped
|
echo_skipped
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echononl " Enable Postfix firewall daemon at boot time .."
|
||||||
|
if $systemd_exists ; then
|
||||||
|
systemctl enable postfwd > /dev/null 2> $tmp_err_msg
|
||||||
|
if [[ $? -eq 0 ]] ; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $tmp_err_msg)"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
update-rc.d postfwd defaults > /dev/null 2> $tmp_err_msg
|
||||||
|
if [[ $? -eq 0 ]] ; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $tmp_err_msg)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echononl " Restart Postfix firewall daemon 'postfwd'.."
|
echononl " Restart Postfix firewall daemon 'postfwd'.."
|
||||||
if $systemd_exists ; then
|
if $systemd_exists ; then
|
||||||
systemctl restart postfwd > /dev/null 2> $tmp_err_msg
|
systemctl restart postfwd > /dev/null 2> $tmp_err_msg
|
||||||
|
Loading…
Reference in New Issue
Block a user