Update 00-.sh

This commit is contained in:
Alexandre
2021-11-07 18:00:12 +01:00
committed by GitHub
parent 07e9b48ff5
commit fbde697ae1

View File

@@ -18,21 +18,15 @@ if [ ! -f "/usr/bin/bashio" ]; then
nginx \ nginx \
coreutils \ coreutils \
openvpn \ openvpn \
&& apt-get clean \ && apt-get clean
\
################## ##################
# Install tempio # # Install tempio #
################## ##################
&& curl -L -f -s -o /usr/bin/tempio \ curl -L -f -s -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \ "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \
&& chmod a+x /usr/bin/tempio \ && chmod a+x /usr/bin/tempio
\
##############
# STATISTICS #
##############
&& curl -L -f -s -o /tmp/tmp \
"https://github.com/alexbelgium/downloads-tracker/archive/refs/tags/Qbittorrent.zip" \
\
################## ##################
# Install bashio # # Install bashio #
################## ##################
@@ -42,13 +36,12 @@ if [ ! -f "/usr/bin/bashio" ]; then
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio \ && rm -rf /tmp/bashio \
\
######################################## ########################################
# Correct upstream image folders links # # Correct upstream image folders links #
######################################## ########################################
\
# Allow UID and GID setting # Allow UID and GID setting
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \ sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \ && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
\ \