This commit is contained in:
Alexandre
2022-09-12 09:42:56 +02:00
parent 20cccca4b0
commit eba1ce7365
61 changed files with 123 additions and 62 deletions

View File

@@ -89,7 +89,7 @@ RUN apk -U update && \
COPY rootfs/ /
# Corrects permissions for /app directory
RUN if [ -d /app ]; then chown -R nginx /app; fi
RUN if [ -d /app ]; then chown -R nginx /app; fi
# Corrects permissions for s6 v3
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
@@ -116,7 +116,8 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
&& curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \
&& chmod 777 /automatic_packages.sh \
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
&& rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE
&& rm /automatic_packages.sh || (printf '%s\n' "${PACKAGES:-}" > /ENVFILE; \
if [ -f /etc/s6-overlay/s6-rc.d/init-migrations/run ]; then chmod /etc/cont-init.d/00-aaa_dockerfile_backup.sh && sed -i "1a /./etc/cont-init.d/00-aaa_dockerfile_backup.sh" /etc/s6-overlay/s6-rc.d/init-migrations/run;fi)
################
# 4 Entrypoint #