#!/bin/sh # postrm script for ceph-common # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove) ;; purge) rm -rf /var/log/ceph rm -rf /etc/ceph ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installinit/12.1.1 if [ "$1" = "purge" ] ; then update-rc.d rbdmap remove >/dev/null fi # End automatically added section # Automatically added by dh_installdeb/12.1.1 dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/rados 10.2.5-1\~ -- "$@" dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/rbd 10.2.5-1\~ -- "$@" # End automatically added section # Automatically added by dh_systemd_start/12.1.1 if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_enable/12.1.1 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'ceph.target' 'rbdmap.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'ceph.target' 'rbdmap.service' >/dev/null || true deb-systemd-helper unmask 'ceph.target' 'rbdmap.service' >/dev/null || true fi fi # End automatically added section exit 0