#!/bin/bash set -e case "$1" in purge) if [ -d /etc/datum-gateway ]; then rm -rf /etc/datum-gateway fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; esac # Automatically added by dh_installinit/14.5 if [ "$1" = "remove" ] && [ -x "/etc/init.d/datum-gateway" ] ; then chmod -x "/etc/init.d/datum-gateway" >/dev/null || true fi if [ -z "$DPKG_ROOT" ] && [ "$1" = "purge" ] ; then update-rc.d datum-gateway remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/14.5 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/14.5 if [ "$1" = "purge" ]; then deb-systemd-helper purge 'datum-gateway.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_installtmpfiles/14.5 if [ -x "$(command -v systemd-tmpfiles)" ]; then if [ "$1" = "purge" ] && systemd-tmpfiles --help | grep -q "\-\-purge"; then systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --purge - >/dev/null </dev/null <