Generate a self signed certificate for the irc bouncer if needed

This commit is contained in:
Bob Mottram 2016-10-29 10:44:38 +01:00
parent 055af8d5c7
commit 610d31845e
1 changed files with 7 additions and 1 deletions

View File

@ -57,7 +57,13 @@ irc_variables=(MY_USERNAME
function start_irc_bouncer {
update_default_domain
su -c 'znc' - znc
if [ ! -f /home/znc/.znc/znc.pem ]; then
# no certificate exists
su -c 'znc -p' - znc
else
# an existing certificate is being used
su -c 'znc' - znc
fi
}
function stop_irc_bouncer {