Messages
This commit is contained in:
parent
46b62d9f63
commit
9bb7352de7
|
@ -646,6 +646,8 @@ function configure_firewall_for_web_access {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_default_domain {
|
function update_default_domain {
|
||||||
|
echo $'Updating default domain'
|
||||||
|
|
||||||
if [ -d /etc/prosody ]; then
|
if [ -d /etc/prosody ]; then
|
||||||
if [ ! -d /etc/prosody/certs ]; then
|
if [ ! -d /etc/prosody/certs ]; then
|
||||||
mkdir /etc/prosody/certs
|
mkdir /etc/prosody/certs
|
||||||
|
@ -695,6 +697,7 @@ function update_default_domain {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /home/znc/.znc ]; then
|
if [ -d /home/znc/.znc ]; then
|
||||||
|
echo $'znc found'
|
||||||
if [[ $(cert_exists ${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
if [[ $(cert_exists ${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then
|
||||||
pkill znc
|
pkill znc
|
||||||
cat /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem /etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key > /home/znc/.znc/znc.pem
|
cat /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem /etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key > /home/znc/.znc/znc.pem
|
||||||
|
|
Loading…
Reference in New Issue