Prosody conference domain
This commit is contained in:
parent
685db44679
commit
6d4819ff47
|
@ -460,21 +460,6 @@ function install_xmpp_main {
|
|||
fi
|
||||
sed -i "s/example.com/$DEFAULT_DOMAIN_NAME/g" /etc/prosody/prosody.cfg.lua
|
||||
|
||||
if [ $XMPP_DOMAIN_CODE ]; then
|
||||
if [ ${#XMPP_DOMAIN_CODE} -gt 0 ]; then
|
||||
if [[ $(cert_exists chat.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||
sed -i 's|--Component "conference.|Component "chat.|g' /etc/prosody/prosody.cfg.lua
|
||||
fi
|
||||
if [[ $(cert_exists xmpp.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||
sed -i 's|--Component "conference.|Component "xmpp.|g' /etc/prosody/prosody.cfg.lua
|
||||
fi
|
||||
if [[ $(cert_exists conference.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||
sed -i 's|--Component "conference.|Component "conference.|g' /etc/prosody/prosody.cfg.lua
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
update_default_domain
|
||||
touch /home/$MY_USERNAME/README
|
||||
|
||||
|
|
|
@ -646,6 +646,17 @@ function update_default_domain {
|
|||
if [ ! -d /etc/prosody/certs ]; then
|
||||
mkdir /etc/prosody/certs
|
||||
fi
|
||||
|
||||
if [[ $(cert_exists chat.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||
sed -i 's|--Component "conference.|Component "chat.|g' /etc/prosody/prosody.cfg.lua
|
||||
fi
|
||||
if [[ $(cert_exists xmpp.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||
sed -i 's|--Component "conference.|Component "xmpp.|g' /etc/prosody/prosody.cfg.lua
|
||||
fi
|
||||
if [[ $(cert_exists conference.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||
sed -i 's|--Component "conference.|Component "conference.|g' /etc/prosody/prosody.cfg.lua
|
||||
fi
|
||||
|
||||
cp /etc/ssl/private/xmpp* /etc/prosody/certs
|
||||
cp /etc/ssl/private/${DEFAULT_DOMAIN_NAME}* /etc/prosody/certs
|
||||
cp /etc/ssl/certs/xmpp* /etc/prosody/certs
|
||||
|
|
Loading…
Reference in New Issue