Update Dockerfile

This commit is contained in:
Alexandre
2022-09-05 10:26:04 +02:00
committed by GitHub
parent 5d7cba89ff
commit ade8454315

View File

@@ -38,14 +38,14 @@ RUN \
&& sed -i 's/# install custom plugins/if bashio::config.has_value "FG_PLUGINS"; then FG_PLUGINS=$(bashio::config "FG_PLUGINS"); else FG_PLUGINS=""; fi/g' "$files"
# GLOBAL LSIO MODIFICATIONS
# hadolint ignore=SC2015
ARG CONFIGLOCATION="/config/addons_config/flexget"
# hadolint ignore=SC2015
RUN \
# Avoid custom-init.d duplications
rm -f $(grep -sril "Potential tampering with custom" /etc/cont-init.d /etc/s6-overlay/s6-rc.d) \
\
# change config folder
&& grep -sril "/config" /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d | xargs grep -riL "/config/" | xargs sed -i "s=/config=$CONFIGLOCATION || true=g" \
&& sed -i "s=/config=$CONFIGLOCATION || true=g" $(grep -sril '/config[ /$]' /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d) \
\
# Allow UID and GID setting
&& for file in $(grep -srl "PUID:-911" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do \