Initial release

This commit is contained in:
aptalca
2022-12-18 14:02:25 -05:00
parent 6745950323
commit ed36fab74c
26 changed files with 41 additions and 132 deletions
-5
View File
@@ -1,5 +0,0 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi
+14
View File
@@ -0,0 +1,14 @@
#!/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
-26
View File
@@ -1,26 +0,0 @@
#!/usr/bin/with-contenv bash
# Determine if setup is needed
if [ ! -f /usr/local/lib/python***/dist-packages/sshuttle ] && \
[ -f /usr/bin/apt ]; then
## Ubuntu
apt-get install --no-install-recommends -y \
iptables \
openssh-client \
python3 \
python3-pip
pip3 install sshuttle
fi
if [ ! -f /usr/lib/python***/site-packages/sshuttle ] && \
[ -f /sbin/apk ]; then
# Alpine
apk add --no-cache \
iptables \
openssh \
py3-pip \
python3
pip3 install sshuttle
fi
chown -R root:root /root
chmod -R 600 /root/.ssh