Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- case "$1" in
- purge|remove|abort-install)
- #check if the directories exist. If so, remove them.
- if [ -d "/opt/stormbit/inspircd/" ]; then rm -r /opt/stormbit/inspircd/; fi;
- if [ "$(grep -c '^inspircd:' /etc/passwd)" == 1 ]; then
- deluser --remove-all-files --remove-home inspircd; fi;
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement