postrm 865 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
  3. CONF="movim"
  4. COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
  5. if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
  6. . /usr/share/apache2/apache2-maintscript-helper
  7. apache2_invoke disconf $CONF || exit $?
  8. elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
  9. [ ! -L /etc/apache2/conf.d/$CONF.conf ] || rm /etc/apache2/conf.d/$CONF.conf
  10. fi
  11. if [ "$1" = purge ]; then
  12. rm -rf /var/cache/movim /etc/movim /usr/share/movim /var/log/movim
  13. db_purge
  14. fi
  15. fi
  16. if [ -f /usr/share/debconf/confmodule ]; then
  17. . /usr/share/debconf/confmodule
  18. fi
  19. if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
  20. . /usr/share/dbconfig-common/dpkg/postrm
  21. dbc_go movim $@
  22. fi