Stop irc bouncer on irc remove

This commit is contained in:
Bob Mottram 2016-10-28 21:00:52 +01:00
parent ab19c7b9f9
commit 7adbd67afa
1 changed files with 1 additions and 0 deletions

View File

@ -386,6 +386,7 @@ function remove_irc {
remove_completion_param configure_firewall_for_irc remove_completion_param configure_firewall_for_irc
sed -i '/IRC /d' ${COMPLETION_FILE} sed -i '/IRC /d' ${COMPLETION_FILE}
sed -i '/znc 2> /d' /etc/crontab sed -i '/znc 2> /d' /etc/crontab
stop_irc_bouncer
if [ -d /home/znc ]; then if [ -d /home/znc ]; then
userdel -r znc userdel -r znc
fi fi