#!/bin/bash

set -o allexport
source "$(dirname $0)/.env"
set +o allexport
source "$(dirname $0)/utils.sh"

log "[restart] Restarting Home Assistant..."

ssh $REMOTE_HOST -p $REMOTE_PORT \
    "docker-compose -f $REMOTE_REPO_PATH/config/docker-compose.yaml restart" 2>/dev/null

log "[restart] ${LIGHT_GREEN}done${NO_FORMAT}"
