From: Mark Clarkstone Date: Thu, 15 Nov 2018 13:21:47 +0000 (+0000) Subject: debian packaging: always reset superuser info on removal X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fc08d9ad711fa2555fed2914fbf7b181bb5c346;p=thirdparty%2Ftvheadend.git debian packaging: always reset superuser info on removal --- diff --git a/debian/tvheadend.config b/debian/tvheadend.config index 50da19160..3c236bab5 100644 --- a/debian/tvheadend.config +++ b/debian/tvheadend.config @@ -22,7 +22,7 @@ while [ "$STATE" != 0 -a "$STATE" != 4 ]; do 3) # Display a final note - db_input high tvheadend/webinterface || true + db_input high tvheadend/last_notes || true ;; esac diff --git a/debian/tvheadend.postrm b/debian/tvheadend.postrm index 51d32b421..e6ada61dd 100644 --- a/debian/tvheadend.postrm +++ b/debian/tvheadend.postrm @@ -11,14 +11,19 @@ purge) HTS_HOME=`getent passwd $HTS_USER | cut -d':' -f6` rm -rf "${HTS_HOME}/.hts/tvheadend" fi - if db_get tvheadend/admin_username; then - db_reset tvheadend/admin_username; - fi - - if db_get tvheadend/admin_password; then - db_reset tvheadend/admin_password; - fi ;; esac +if db_get tvheadend/admin_username; then + db_reset tvheadend/admin_username; +fi + +if db_get tvheadend/admin_password; then + db_reset tvheadend/admin_password; +fi + +if db_get tvheadend/last_notes; then + db_reset tvheadend/last_notes; +fi + exit 0 diff --git a/debian/tvheadend.templates b/debian/tvheadend.templates index 2e5a650c7..a28482ea2 100644 --- a/debian/tvheadend.templates +++ b/debian/tvheadend.templates @@ -12,6 +12,7 @@ Template: tvheadend/admin_password Type: password Description: Administrator password. -Template: tvheadend/webinterface +Template: tvheadend/last_notes Type: note -Description: After installation Tvheadend can be accessed via HTTP on port 9981. From this machine you can point your web-browser to http://localhost:9981/ +Description: After installation Tvheadend can be accessed via HTTP on port 9981. From this machine you can point your web-browser to http://localhost:9981/. + If you want to completely remove configuration, use your package manager's --purge option, e.g, apt-get remove --purge tvheadend*