mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 21:54:20 +01:00
Fix HA container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user