Generate a self signed certificate for the irc bouncer if needed
This commit is contained in:
parent
055af8d5c7
commit
610d31845e
|
@ -57,7 +57,13 @@ irc_variables=(MY_USERNAME
|
|||
|
||||
function start_irc_bouncer {
|
||||
update_default_domain
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue