]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove tvheadend user on purge
authordave-p <gh@pickles.me.uk>
Wed, 26 Jun 2024 06:24:26 +0000 (07:24 +0100)
committerFlole <Flole998@users.noreply.github.com>
Thu, 27 Jun 2024 21:10:03 +0000 (23:10 +0200)
This fixes #1722 on my test system.

debian/tvheadend.postrm

index 271bf1a119400d097586f4588ae92e0fd63d8b2d..92a54c826dbbda54e1326836001099e326dd07f2 100644 (file)
@@ -9,6 +9,7 @@ case "$1" in
 purge)
     if getent passwd "$HTS_USER" >/dev/null; then
         rm -rf "$(getent passwd "$HTS_USER" | cut -d':' -f6)"
+        deluser --system "$HTS_USER"
     fi
     db_purge
    ;;