Advertisement
Rikairchy

inspircd.postrm

May 17th, 2015
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #!/bin/bash
  2. set -e
  3.  
  4. case "$1" in
  5.     purge|remove|abort-install)
  6.         #check if the directories exist. If so, remove them.
  7.         if [ -d "/opt/stormbit/inspircd/" ]; then rm -r /opt/stormbit/inspircd/; fi;
  8.     if [ "$(grep -c '^inspircd:' /etc/passwd)" == 1 ]; then
  9.     deluser --remove-all-files --remove-home inspircd; fi;
  10.         ;;
  11. esac
  12. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement