This commit is contained in:
Alexandre
2022-01-10 11:31:20 +01:00
parent 2c5ee38e4e
commit 7557b76b5b
4 changed files with 160 additions and 6 deletions

View File

@@ -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 /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
################
# 4 Entrypoint #