tvheadend/debian/tvheadend.postrm

15 lines
225 B
Text
Raw Permalink Normal View History

#!/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