Update 00-aaa_dockerfile_backup.sh

This commit is contained in:
Alexandre
2022-01-20 07:57:08 +01:00
committed by GitHub
parent 6323d06c86
commit c889c9ff26

View File

@@ -11,7 +11,7 @@ if [ -e "/MODULESFILE" ]; then
if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl); fi && \
mkdir -p /etc/cont-init.d && \
for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts"; done && \
chmod -R 755 /etc/cont-init.d; fi && \
chmod -R 755 /etc/cont-init.d && \
|| printf '%s\n' "${MODULES:-}" >/MODULESFILE
) >/dev/null