Browse Source

Remove znc user

Bob Mottram 8 years ago
parent
commit
d5dfc82c24
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-app-irc

+ 3
- 0
src/freedombone-app-irc View File

@@ -350,6 +350,9 @@ function remove_irc {
350 350
     remove_completion_param configure_firewall_for_irc
351 351
     sed -i '/IRC /d' ${COMPLETION_FILE}
352 352
     sed -i '/znc 2> /d' /etc/crontab
353
+    if [ -d /home/znc ]; then
354
+        userdel -r znc
355
+    fi
353 356
 }
354 357
 
355 358
 function configure_firewall_for_irc {