Clean logic

This commit is contained in:
Alexandre
2023-09-05 21:27:22 +02:00
parent e0cfc723cf
commit 6a8e30e909
80 changed files with 82 additions and 172 deletions

View File

@@ -80,8 +80,7 @@ ADD --chmod=744 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/mas
# 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 && \
if [ -f /docker-mods ] && [ -f /ha_entrypoint.sh ]; then sed -i "1a /./ha_entrypoint.sh" /docker-mods; fi
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi
ENTRYPOINT [ "/usr/bin/env" ]