|
@@ -371,6 +371,9 @@ function install_xmpp_main {
|
371
|
371
|
chown root:default /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.*
|
372
|
372
|
|
373
|
373
|
cp -a /etc/prosody/conf.avail/example.com.cfg.lua /etc/prosody/conf.avail/xmpp.cfg.lua
|
|
374
|
+ if [ ! -d /etc/prosody/certs ]; then
|
|
375
|
+ mkdir /etc/prosody/certs
|
|
376
|
+ fi
|
374
|
377
|
|
375
|
378
|
if [[ "$(cert_exists ${DEFAULT_DOMAIN_NAME} pem)" == "1" ]]; then
|
376
|
379
|
sed -i "s|/etc/prosody/certs/example.com.key|/etc/prosody/certs/${DEFAULT_DOMAIN_NAME}.key|g" /etc/prosody/conf.avail/xmpp.cfg.lua
|
|
@@ -474,8 +477,6 @@ function install_xmpp_main {
|
474
|
477
|
fi
|
475
|
478
|
sed -i "s/example.com/$DEFAULT_DOMAIN_NAME/g" /etc/prosody/prosody.cfg.lua
|
476
|
479
|
|
477
|
|
- update_default_domain
|
478
|
|
-
|
479
|
480
|
if [ ! -d /var/lib/tor ]; then
|
480
|
481
|
echo $'No Tor installation found. xmpp onion site cannot be configured.'
|
481
|
482
|
exit 877367
|
|
@@ -517,6 +518,13 @@ function install_xmpp_main {
|
517
|
518
|
configure_firewall_for_xmpp
|
518
|
519
|
xmpp_email_headers
|
519
|
520
|
|
|
521
|
+ cp /etc/ssl/certs/xmpp.* /etc/prosody/certs
|
|
522
|
+ cp /etc/ssl/private/xmpp.* /etc/prosody/certs
|
|
523
|
+ chown -R prosody:default /etc/prosody
|
|
524
|
+ update_default_domain
|
|
525
|
+
|
|
526
|
+ systemctl restart prosody
|
|
527
|
+
|
520
|
528
|
install_completed xmpp_main
|
521
|
529
|
}
|
522
|
530
|
|