Fix HA container

This commit is contained in:
Pascal Vizeli
2020-02-06 11:27:12 +01:00
committed by GitHub
parent 84e79ac47b
commit 7062117d46

View File

@@ -68,6 +68,11 @@ function cleanup_hass_data() {
function cleanup_docker() {
echo "Cleaning up stopped containers..."
docker rm $(docker ps -a -q)
# Clean homeassistant instance
if docker rm -f homeassistant 2> /dev/null; then
echo "Cleanup HomeAssistant instance"
fi
}
function run_supervisor() {
@@ -100,4 +105,4 @@ case "$1" in
install
run_supervisor
stop_docker;;
esac
esac