* Remove configuration and settings (/home/hts/.hts/tvheadend) on a

deb package purge operation. Ticket #73
This commit is contained in:
Andreas Öman 2009-07-04 06:45:52 +00:00
parent 2d594cd0c9
commit 0c047c38b9
2 changed files with 17 additions and 0 deletions

3
debian/changelog vendored
View file

@ -31,6 +31,9 @@ hts-tvheadend (2.3) hts; urgency=low
* Use a ''livegrid'' (http://www.ext-livegrid.com/) for displaying EPG.
* Remove configuration and settings (/home/hts/.hts/tvheadend) on a
deb package purge operation. Ticket #73
hts-tvheadend (2.2) hts; urgency=low
* Set $HOME so forked processes (XMLTV) will have correct environment

14
debian/hts-tvheadend.postrm vendored Normal file
View file

@ -0,0 +1,14 @@
#!/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