diff --git a/postgres/Dockerfile b/postgres/Dockerfile index 8903b9020..bdbb93e83 100644 --- a/postgres/Dockerfile +++ b/postgres/Dockerfile @@ -69,12 +69,14 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get # Add entrypoint ENV S6_STAGE2_HOOK=/ha_entrypoint.sh -ADD --chmod=777 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" +ADD --chmod=644 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" # Corrects permissions for s6 v3 RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi +RUN curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" --output /ha_entrypoint.sh \ + && chmod 777 /ha_entrypoint.sh WORKDIR /data ENTRYPOINT [ "/usr/bin/env" ]