tvheadend/debian/hts-tvheadend.postrm
Andreas Öman 0c047c38b9 * Remove configuration and settings (/home/hts/.hts/tvheadend) on a
deb package purge operation. Ticket #73
2009-07-04 06:45:52 +00:00

14 lines
225 B
Bash

#!/bin/sh -e
HTS_USER=hts
case "$1" in
purge)
if getent passwd $HTS_USER >/dev/null; then
HTS_HOME=`getent passwd $HTS_USER | cut -d':' -f6`
rm -rf "${HTS_HOME}/.hts/tvheadend"
fi
;;
esac
exit 0