postrm 454 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. set -e
  3. ODOO_LIB_DIR=/var/lib/odoo
  4. ODOO_USER="odoo"
  5. ODOO_GROUP="odoo"
  6. case "${1}" in
  7. remove)
  8. deluser --quiet --system $ODOO_USER || true
  9. delgroup --quiet --system --only-if-empty $ODOO_GROUP || true
  10. ;;
  11. purge)
  12. if [ -d "$ODOO_LIB_DIR" ]; then
  13. rm -rf $ODOO_LIB_DIR
  14. fi
  15. ;;
  16. upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  17. ;;
  18. esac
  19. #DEBHELPER#
  20. exit 0