* Remove configuration and settings (/home/hts/.hts/tvheadend) on a
deb package purge operation. Ticket #73
This commit is contained in:
parent
2d594cd0c9
commit
0c047c38b9
2 changed files with 17 additions and 0 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -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
14
debian/hts-tvheadend.postrm
vendored
Normal 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
|
Loading…
Add table
Reference in a new issue