#!/bin/sh

set -e

# Source debconf library.
. /usr/share/debconf/confmodule


case "$1" in
    upgrade)
    ;;
    remove|upgrade|deconfigure)
      # Remove post installation created files

      # Remove admin credentials
      if [ -e /usr/share/biomaj/.bmajwatcherpasswd ]; then
         rm /usr/share/biomaj/.bmajwatcherpasswd
      fi

      if [ -e /usr/share/biomaj-watcher/bin/WatcherConfigurator.class ]; then
         rm /usr/share/biomaj-watcher/bin/WatcherConfigurator.class
      fi

    ;;

    failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac


#DEBHELPER#
