From bb673203a8a2ec7f0a1677cdcec3818aca65f2c6 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Mon, 10 Jan 2022 16:17:12 +0100 Subject: [PATCH] modulization --- qbittorrent/Dockerfile | 12 ++++++------ zzz_templates/00-banner.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile index d99f920b4..ee77a8311 100644 --- a/qbittorrent/Dockerfile +++ b/qbittorrent/Dockerfile @@ -66,14 +66,14 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE # Modules -#ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" +ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh" # Automatic modules download -#RUN mkdir -p /tmpscripts /scripts /etc/cont-init.d && \ -# for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ -# /bin/cp -rf /tmpscripts/* {/scripts/, /etc/cont-init.d/} && \ -# chmod -R 777 {/scripts, /etc/cont-init.d} && \ -# rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && \ + chmod -R 755 /etc/cont-init.d && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ # 4 Entrypoint # diff --git a/zzz_templates/00-banner.sh b/zzz_templates/00-banner.sh index 54d7d491a..ccbd2159a 100644 --- a/zzz_templates/00-banner.sh +++ b/zzz_templates/00-banner.sh @@ -2,7 +2,7 @@ # ============================================================================== # Displays a simple add-on banner on startup # ============================================================================== - +echo "hello" if bashio::supervisor.ping; then bashio::log.blue \ '-----------------------------------------------------------'