diff --git a/signalk/Dockerfile b/signalk/Dockerfile index 473937297..ab1168d04 100644 --- a/signalk/Dockerfile +++ b/signalk/Dockerfile @@ -69,6 +69,9 @@ 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 +# Restart the addon on crash +RUN echo "bashio::addon.restart" >> /ha_entrypoint.sh + ENTRYPOINT [ "/usr/bin/env" ] CMD [ "/ha_entrypoint.sh" ]