homeassistant-hacs update/add workflows

This commit is contained in:
aptalca
2023-05-17 16:52:08 -04:00
parent 923ca6cc38
commit 25bb1aed4f
6 changed files with 54 additions and 66 deletions
-14
View File
@@ -1,14 +0,0 @@
#!/usr/bin/with-contenv bash
if [ -d /config/custom_components/hacs ]; then
echo "**** HACS already installed, skipping ****"
else
echo "**** Installing HACS ****"
curl -o /tmp/hacs.zip \
-fL "https://github.com/hacs/integration/releases/latest/download/hacs.zip"
mkdir -p /config/custom_components/hacs
unzip /tmp/hacs.zip -d /config/custom_components/hacs
chown abc:abc /config/custom_components
chown -R abc:abc /config/custom_components/hacs
rm -rf /tmp/hacs.zip
fi
@@ -8,7 +8,7 @@ else
-fL "https://github.com/hacs/integration/releases/latest/download/hacs.zip"
mkdir -p /config/custom_components/hacs
unzip /tmp/hacs.zip -d /config/custom_components/hacs
chown abc:abc /config/custom_components
chown -R abc:abc /config/custom_components/hacs
lsiown abc:abc /config/custom_components
lsiown -R abc:abc /config/custom_components/hacs
rm -rf /tmp/hacs.zip
fi