convert LF

This commit is contained in:
Alexandre
2021-10-18 17:00:48 +02:00
parent 899c6e5b79
commit 39acb510bb
9 changed files with 109 additions and 109 deletions

View File

@@ -1,14 +1,13 @@
#!/bin/bash
if [ ! -f "/usr/lib/bashio" ]; then
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
################
# Install apps #
################
apt-get clean
apt-get update \
apt-get install -y --no-install-recommends \
apt-get update
apt-get install -y --no-install-recommends \
jq \
curl \
cifs-utils \
@@ -20,10 +19,10 @@ if [ ! -f "/usr/lib/bashio" ]; then
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio \
mv /tmp/bashio/lib /usr/lib/bashio \
ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
rm -rf /tmp/bashio
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
echo "Bashio installed"
fi