Reset debconf selections (#189)

* reset machine type

* rename function

* Add removal message

* add detail to message
This commit is contained in:
Matheson Steplock 2022-02-05 21:09:18 -05:00 committed by GitHub
parent 089222313e
commit 3200e99888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,9 +20,17 @@ function undo_divert () {
--divert /etc/network/interfaces.real /etc/network/interfaces --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 case "$1" in
remove|abort-install|disappear) remove|abort-install|disappear)
info Undo divert on "$@" info Undo divert on "$@"
undo_divert 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 esac