diff --git a/paperless_ngx/Dockerfile b/paperless_ngx/Dockerfile index c2a873489ff..d8d0350e2b0 100644 --- a/paperless_ngx/Dockerfile +++ b/paperless_ngx/Dockerfile @@ -28,9 +28,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \ S6_SERVICES_GRACETIME=0 -# Add custom scripts -RUN sed -i "2a source /ha_entrypoint.sh" /sbin/docker-entrypoint.sh && \ - sed -i 's=/./=source /=g' /ha_entrypoint.sh #&& \ # Correct pre-encoded paths # for file in $(grep -sril "/usr/src/paperless/" /sbin /usr); do sed -i "s=/usr/src/paperless/=/config/=g" "$file"; done @@ -68,6 +65,10 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh" RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh +# Add custom scripts +RUN sed -i "2a source /ha_entrypoint.sh" /sbin/docker-entrypoint.sh && \ + sed -i 's=/./=source /=g' /ha_entrypoint.sh + #ENTRYPOINT [ "/usr/bin/env" ] #CMD [ "/ha_entrypoint.sh" ] #SHELL ["/bin/bash", "-o", "pipefail", "-c"]