irc user directory
This commit is contained in:
parent
01c8ac8b60
commit
8dfaa5d981
|
@ -464,6 +464,9 @@ function remove_irc {
|
||||||
if [ -d /home/znc ]; then
|
if [ -d /home/znc ]; then
|
||||||
userdel -r znc
|
userdel -r znc
|
||||||
fi
|
fi
|
||||||
|
if [ -d /var/run/ircd ]; then
|
||||||
|
rm -rf /var/run/ircd
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_firewall_for_irc {
|
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})
|
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
|
chmod 600 /etc/ngircd/ngircd.conf
|
||||||
systemctl restart ngircd
|
systemctl restart ngircd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue