install_update_dovecot.sh: add setting/default value for variable 'postfix_main_cf'.

This commit is contained in:
Christoph 2021-08-22 17:55:52 +02:00
parent d182564d0a
commit 7837919b99
2 changed files with 15 additions and 0 deletions

View File

@ -57,6 +57,18 @@ ipv6=""
#http_user="www-data"
# ---
# - Postffix Settings
# ---
# - Postfix Main Configuration File
# -
# - defaults to:
# - /etc/postfix/main.cf
# -
#postfix_main_cf="/etc/postfix/main.cf"
# ---
# - Listener configuration
# ---

View File

@ -140,6 +140,8 @@ fi
[[ -n "$ipv4" ]] || fatal "Missing value for parameter 'ipv4'."
[[ -n "$ipv6" ]] || warn "Missing value for parameter 'ipv6'."
[[ -n "$postfix_main_cf" ]] || postfix_main_cf="/etc/postfix/main.cf"
[[ -n "$database" ]] || fatal "Parameter "database" not set."
if [[ "$database" != "postgres" ]] && [[ "$database" != "mysql" ]] ; then
@ -178,6 +180,7 @@ if $xmpp_listener ; then
fi
[[ -n "$http_user" ]] || http_user="www-data"
[[ -n "$postfix_main_cf" ]] || postfix_main_cf="/etc/postfix/main.cf"
[[ -n "$dbname" ]] || dbname="postfix"
[[ -n "$dbuser" ]] || dbuser="postfix"