mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-28 15:37:39 +01:00
Update Dockerfile
This commit is contained in:
@@ -48,12 +48,11 @@ RUN \
|
|||||||
&& echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf
|
&& echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf
|
||||||
|
|
||||||
# Global LSIO modifications
|
# Global LSIO modifications
|
||||||
# hadolint ignore=SC2015
|
|
||||||
ARG CONFIGLOCATION="/config"
|
ARG CONFIGLOCATION="/config"
|
||||||
|
# hadolint ignore=SC2015
|
||||||
RUN \
|
RUN \
|
||||||
echo "Running LSIO modifications" \
|
|
||||||
# Avoid custom-init.d duplications
|
# Avoid custom-init.d duplications
|
||||||
&& for file in $(grep -sril 'Potential tampering with custom' /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do rm -f "$file"; done \
|
for file in $(grep -sril 'Potential tampering with custom' /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do rm -f "$file"; done \
|
||||||
\
|
\
|
||||||
# Allow UID and GID setting
|
# Allow UID and GID setting
|
||||||
&& for file in $(grep -srl "PUID:-911" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do sed -i 's/bash/bashio/g' "$file" && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' "$file" && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' "$file"; done \
|
&& for file in $(grep -srl "PUID:-911" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do sed -i 's/bash/bashio/g' "$file" && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' "$file" && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' "$file"; done \
|
||||||
|
|||||||
Reference in New Issue
Block a user