Change irc certs
This commit is contained in:
parent
f15580cc3e
commit
ec53797e47
|
@ -700,6 +700,12 @@ function update_default_domain {
|
||||||
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
|
||||||
chown znc:znc /home/znc/.znc/znc.pem
|
chown znc:znc /home/znc/.znc/znc.pem
|
||||||
chmod 700 /home/znc/.znc/znc.pem
|
chmod 700 /home/znc/.znc/znc.pem
|
||||||
|
|
||||||
|
sed -i "s|CertFile =.*|CertFile = /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem" /etc/ngircd/ngircd.conf
|
||||||
|
sed -i "s|DHFile =.*|DHFile = /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.dhparam" /etc/ngircd/ngircd.conf
|
||||||
|
sed -i "s|KeyFile =.*|KeyFile = /etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key" /etc/ngircd/ngircd.conf
|
||||||
|
|
||||||
|
systemctl restart ngircd
|
||||||
su -c 'znc' - znc
|
su -c 'znc' - znc
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue