2
0

freeswitch.postrm 577 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. set -e
  3. case "$1" in
  4. purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  5. if [ "$1" = "purge" ]; then
  6. if getent passwd freeswitch >/dev/null; then
  7. userdel freeswitch
  8. fi
  9. if getent group freeswitch >/dev/null; then
  10. groupdel freeswitch
  11. fi
  12. for x in \
  13. /var/lib/freeswitch \
  14. /var/log/freeswitch \
  15. /var/run/freeswitch;
  16. do
  17. rm -rf $x
  18. done
  19. fi
  20. ;;
  21. *)
  22. echo "postrm called with unknown argument \`$1'" >&2
  23. exit 1
  24. ;;
  25. esac
  26. #DEBHELPER#
  27. exit 0