diff options
author | Daniel Baumann <daniel@debian.org> | 2011-07-15 20:31:44 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-07-15 20:38:39 +0200 |
commit | 7e4c34b6f2259425ed4258d8f36b55e6d468efdf (patch) | |
tree | 043237418591a3036d18eae06029d380586ef8bd /debian/live-build-cron.postrm | |
parent | e24497b72306d4519d8c2999c6b7c0dbec9166ef (diff) | |
download | vyos-live-build-7e4c34b6f2259425ed4258d8f36b55e6d468efdf.tar.gz vyos-live-build-7e4c34b6f2259425ed4258d8f36b55e6d468efdf.zip |
Adding initial live-build-cron package.
Diffstat (limited to 'debian/live-build-cron.postrm')
-rw-r--r-- | debian/live-build-cron.postrm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/live-build-cron.postrm b/debian/live-build-cron.postrm new file mode 100644 index 000000000..f38627677 --- /dev/null +++ b/debian/live-build-cron.postrm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +_DIRECTORY="/srv/debian.net/live-manual" + +case "${1}" in + remove) + 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 |