[Update] Add XMPP ports
parent
06c89bac7d
commit
d146ee12ad
10
update.sh
10
update.sh
|
@ -218,6 +218,8 @@ CONFIG_ARRAY=(
|
|||
"DOVECOT_MASTER_USER"
|
||||
"DOVECOT_MASTER_PASS"
|
||||
"MAILCOW_PASS_SCHEME"
|
||||
"XMPP_C22_PORT"
|
||||
"XMPP_S2S_PORT"
|
||||
)
|
||||
|
||||
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 "MAILCOW_PASS_SCHEME=BLF-CRYPT" >> mailcow.conf
|
||||
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
|
||||
echo "Adding new option \"${option}\" to mailcow.conf"
|
||||
echo "${option}=n" >> mailcow.conf
|
||||
|
|
Loading…
Reference in New Issue