38 lines
519 B
Bash
38 lines
519 B
Bash
#!/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
|