From fbde697ae10aec8597110929ad186b1a80473453 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 7 Nov 2021 18:00:12 +0100 Subject: [PATCH] Update 00-.sh --- qbittorrent/rootfs/etc/cont-init.d/00-.sh | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/00-.sh b/qbittorrent/rootfs/etc/cont-init.d/00-.sh index c2d484b1e..0344c9610 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/00-.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/00-.sh @@ -18,21 +18,15 @@ if [ ! -f "/usr/bin/bashio" ]; then nginx \ coreutils \ openvpn \ - && apt-get clean \ - \ + && apt-get clean + ################## # 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}" \ - && 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" \ - \ + && chmod a+x /usr/bin/tempio + ################## # Install bashio # ################## @@ -42,13 +36,12 @@ if [ ! -f "/usr/bin/bashio" ]; then && mv /tmp/bashio/lib /usr/lib/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && rm -rf /tmp/bashio \ - \ + ######################################## # Correct upstream image folders links # ######################################## - \ # 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/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \ \