[Update] Add XMPP ports

master
andryyy 2021-02-11 09:35:19 +01:00
parent 06c89bac7d
commit d146ee12ad
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 10 additions and 0 deletions

View File

@ -218,6 +218,8 @@ CONFIG_ARRAY=(
"DOVECOT_MASTER_USER" "DOVECOT_MASTER_USER"
"DOVECOT_MASTER_PASS" "DOVECOT_MASTER_PASS"
"MAILCOW_PASS_SCHEME" "MAILCOW_PASS_SCHEME"
"XMPP_C22_PORT"
"XMPP_S2S_PORT"
) )
sed -i --follow-symlinks '$a\' mailcow.conf sed -i --follow-symlinks '$a\' mailcow.conf
@ -399,6 +401,14 @@ for option in ${CONFIG_ARRAY[@]}; do
echo '# see https://mailcow.github.io/mailcow-dockerized-docs/model-passwd/' >> mailcow.conf echo '# see https://mailcow.github.io/mailcow-dockerized-docs/model-passwd/' >> mailcow.conf
echo "MAILCOW_PASS_SCHEME=BLF-CRYPT" >> mailcow.conf echo "MAILCOW_PASS_SCHEME=BLF-CRYPT" >> mailcow.conf
fi fi
elif [[ ${option} == "XMPP_C22_PORT" ]]; then
if ! grep -q ${option} mailcow.conf; then
echo "XMPP_C22_PORT=5222" >> mailcow.conf
fi
elif [[ ${option} == "XMPP_S2S_PORT" ]]; then
if ! grep -q ${option} mailcow.conf; then
echo "XMPP_S2S_PORT=5269" >> mailcow.conf
fi
elif ! grep -q ${option} mailcow.conf; then elif ! grep -q ${option} mailcow.conf; then
echo "Adding new option \"${option}\" to mailcow.conf" echo "Adding new option \"${option}\" to mailcow.conf"
echo "${option}=n" >> mailcow.conf echo "${option}=n" >> mailcow.conf