diff --git a/scrutiny_fa/Dockerfile b/scrutiny_fa/Dockerfile index 1183428c8..61a233802 100644 --- a/scrutiny_fa/Dockerfile +++ b/scrutiny_fa/Dockerfile @@ -69,7 +69,7 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif. ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/.bashio-standalone.sh" RUN chmod 777 /.bashio-standalone.sh -RUN sed -i "1a bashio::require.unprotected" /etc/cont-init.d/90-run.sh +RUN sed -i "1a if ! bashio::require.unprotected; then bashio::addon.stop; fi" /etc/cont-init.d/90-run.sh ############ # 5 Labels #