mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Update Dockerfile
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user