Skip to content
Snippets Groups Projects
Commit 9bb7352d authored by Bob Mottram's avatar Bob Mottram
Browse files

Messages

parent 46b62d9f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment