diff options
Diffstat (limited to 'debian/tmp/live-build-cron-manual.postrm')
-rw-r--r-- | debian/tmp/live-build-cron-manual.postrm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/tmp/live-build-cron-manual.postrm b/debian/tmp/live-build-cron-manual.postrm new file mode 100644 index 000000000..6e15675b5 --- /dev/null +++ b/debian/tmp/live-build-cron-manual.postrm @@ -0,0 +1,37 @@ +#!/bin/sh + +set -e + +_USERNAME="live-autobuild-manual" +_DIRECTORY="/srv/debian.net/live-manual" + +case "${1}" in + remove) + if [ -x /usr/sbin/deluser ] + then + deluser --system ${_USERNAME} || true + fi + + if [ -d "${_DIRECTORY}" ] + then + rmdir --ignore-fail-on-non-empty "${_DIRECTORY}" || true + fi + ;; + + purge) + rm -rf "${_DIRECTORY}" + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |