irc user directory

This commit is contained in:
Bob Mottram 2016-11-30 14:25:27 +00:00
parent 01c8ac8b60
commit 8dfaa5d981
1 changed files with 8 additions and 0 deletions

View File

@ -464,6 +464,9 @@ function remove_irc {
if [ -d /home/znc ]; then
userdel -r znc
fi
if [ -d /var/run/ircd ]; then
rm -rf /var/run/ircd
fi
}
function configure_firewall_for_irc {
@ -576,6 +579,11 @@ function install_irc_server {
IRC_ONION_HOSTNAME=$(add_onion_service irc ${IRC_BOUNCER_PORT} ${IRC_ONION_PORT})
if [ ! -d /var/run/ircd ]; then
mkdir /var/run/ircd
chown -R irc:irc /var/run/ircd
fi
chmod 600 /etc/ngircd/ngircd.conf
systemctl restart ngircd