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

Generate a self signed certificate for the irc bouncer if needed

parent 055af8d5
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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