From ee99360c80522607e7f4286c89793d4ce238cd01 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 11 Jan 2023 12:36:44 -0500 Subject: [PATCH] Update homeassistant-core-v5-install.sh Pre-Initialize --- install/homeassistant-core-v5-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh index 3c88bd62..37131755 100644 --- a/install/homeassistant-core-v5-install.sh +++ b/install/homeassistant-core-v5-install.sh @@ -146,6 +146,7 @@ $STD python3 -m pip install wheel $STD pip install mysqlclient $STD pip install psycopg2-binary $STD pip install homeassistant +mkdir -p /root/.homeassistant msg_ok "Installed Home Assistant-Core" msg_info "Creating Service" @@ -161,7 +162,7 @@ RestartForceExitStatus=100 [Install] WantedBy=multi-user.target EOF -$STD systemctl enable homeassistant +$STD systemctl enable --now homeassistant msg_ok "Created Service" PASS=$(grep -w "root" /etc/shadow | cut -b6)