#!/bin/sh # This script can be called in the following ways: # # After the package was removed: # remove # # After the package was purged: # purge # # After the package was upgraded: # upgrade # if that fails: # failed-upgrade # # # After all of the packages files have been replaced: # disappear # # # If preinst fails during install: # abort-install # # If preinst fails during upgrade of removed package: # abort-install # # If preinst fails during upgrade: # abort-upgrade set -e case "$1" in purge) rm -rf /etc/ngcp-system-tests/ # Remove old location too. rm -rf /etc/ngcp-tests/ ;; remove|upgrade|failed-upgrade|disappear|abort-install|abort-upgrade) ;; *) echo "postrm called with unknown argument '$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0