From 39b3440f63ae160c907a931b241fe8d0e64d7a86 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:01:31 +0200 Subject: [PATCH] Update Dockerfile --- postgres/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" ]