#!/bin/bash set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) if test "x$1" == "xpurge" then userdel -r vx-worker || true rm -rf /var/lib/vexor/worker rm -f /var/log/upstart/vx-worker.log fi ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 esac #DEBHELPER# exit 0