From 3200e998885d1856d2f0946b2d196e8311a8122e Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Sat, 5 Feb 2022 21:09:18 -0500 Subject: [PATCH] Reset debconf selections (#189) * reset machine type * rename function * Add removal message * add detail to message --- homeassistant-supervised/DEBIAN/postrm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant-supervised/DEBIAN/postrm b/homeassistant-supervised/DEBIAN/postrm index c7033a3..58cc9f9 100755 --- a/homeassistant-supervised/DEBIAN/postrm +++ b/homeassistant-supervised/DEBIAN/postrm @@ -20,9 +20,17 @@ function undo_divert () { --divert /etc/network/interfaces.real /etc/network/interfaces } +function reset_debconf_selections () { + info "Resetting debconf selections" + echo PURGE | debconf-communicate homeassistant-supervised >/dev/null +} + case "$1" in remove|abort-install|disappear) info Undo divert on "$@" undo_divert + reset_debconf_selections + info "Removal complete, due to the complexity of this installation method," + info "you will need to manually the containers created by the supervisor" ;; esac