Debian packaging for zookeeper.
[lui-solr.git] / debian / masterkey-lui-solr5.postrm
1 #!/bin/sh -e
2
3 case "$1" in
4     purge|remove)
5         # Remove Solr installation
6         rm -f /usr/share/masterkey/lui/lui-solr
7         rm -rf /usr/share/masterkey/lui/solr-*
8
9         # Automatically added by dh_installinit
10         if [ "$1" = "purge" ] ; then
11             update-rc.d lui-solr remove >/dev/null
12         fi
13
14
15         # In case this system is running systemd, we make systemd reload the unit files
16         # to pick up changes.
17         if [ -d /run/systemd/system ] ; then
18             systemctl --system daemon-reload >/dev/null || true
19         fi
20         # End automatically added section
21
22         ;;
23
24     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
25         ;;
26
27     *)
28         echo "postrm called with unknown argument \`$1'" >&2
29         exit 1
30 esac
31
32 exit 0