ha_lsio external script

This commit is contained in:
Alexandre
2023-09-09 19:03:05 +02:00
parent deff06ff98
commit 03a11be1f1
38 changed files with 118 additions and 745 deletions

View File

@@ -28,12 +28,14 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
# Global LSIO modifications
ADD --chmod=744 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config/addons_config/jellyseerr"
RUN if grep -qr "lsio" /etc, then /ha_lsio.sh "$CONFIGLOCATION"; fi
# Avoid custom-init.d duplications
ARG CONFIGLOCATION="/config/addons_config/jellyseerr"
# hadolint ignore=SC2015, SC2013, SC2086
RUN \
# Avoid custom-init.d duplications
for file in $(grep -sril "/app/config" /app /etc); do sed -i "s=/app/config=$CONFIGLOCATION=g" $file; done
##################