X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=blobdiff_plain;f=debian%2Fmasterkey-lui-solr5.postrm;fp=debian%2Fmasterkey-lui-solr5.postrm;h=49e2e51511d1e06b83eb451f549b9319d73ce769;hp=0000000000000000000000000000000000000000;hb=18a053d37b16c10ca74b8e3ea2068740cd9904c7;hpb=27a519e4297aa21b0ed16b080a36378ac63e83a1 diff --git a/debian/masterkey-lui-solr5.postrm b/debian/masterkey-lui-solr5.postrm new file mode 100755 index 0000000..49e2e51 --- /dev/null +++ b/debian/masterkey-lui-solr5.postrm @@ -0,0 +1,32 @@ +#!/bin/sh -e + +case "$1" in + purge|remove) + # Remove Solr installation + rm -f /usr/share/masterkey/lui/lui-solr + rm -rf /usr/share/masterkey/lui/solr-* + + # Automatically added by dh_installinit + if [ "$1" = "purge" ] ; then + update-rc.d lui-solr remove >/dev/null + fi + + + # In case this system is running systemd, we make systemd reload the unit files + # to pick up changes. + if [ -d /run/systemd/system ] ; then + systemctl --system daemon-reload >/dev/null || true + fi + # End automatically added section + + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +exit 0