This commit is contained in:
Bob Mottram 2016-10-30 19:42:39 +00:00
parent 46b62d9f63
commit 9bb7352de7
1 changed files with 3 additions and 0 deletions

View File

@ -646,6 +646,8 @@ function configure_firewall_for_web_access {
}
function update_default_domain {
echo $'Updating default domain'
if [ -d /etc/prosody ]; then
if [ ! -d /etc/prosody/certs ]; then
mkdir /etc/prosody/certs
@ -695,6 +697,7 @@ function update_default_domain {
fi
if [ -d /home/znc/.znc ]; then
echo $'znc found'
if [[ $(cert_exists ${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
pkill znc
cat /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem /etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key > /home/znc/.znc/znc.pem