From eef16cf3bf99efea2cb1159e68352c73ad944859 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 26 Aug 2025 08:36:27 +0200 Subject: [PATCH] Stop addon if protected is on https://github.com/alexbelgium/hassio-addons/issues/2037#issuecomment-3222032887 --- scrutiny_fa/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #