mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Avoid config permissions change https://github.com/alexbelgium/hassio-addons/pull/413
This commit is contained in:
@@ -31,8 +31,13 @@ RUN \
|
||||
# use /data instead of /config for hass.io environment
|
||||
sed -i 's|/config \\|/data \\|g' /etc/cont-init.d/30-config \
|
||||
\
|
||||
# Allow UID and GID setting
|
||||
# Avoid custom-init.d duplications
|
||||
&& if [ -f /etc/cont-init.d/02-tamper-check ]; then rm /etc/cont-init.d/02-tamper-check; fi \
|
||||
\
|
||||
# Prevent changing ownership of /config
|
||||
&& if [ -f /etc/cont-init.d/10-adduser ]; then sed -i "/chown abc:abc \/config$/d" /etc/cont-init.d/10-adduser; fi \
|
||||
\
|
||||
# Allow UID and GID setting
|
||||
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \
|
||||
&& sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser \
|
||||
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser
|
||||
|
||||
Reference in New Issue
Block a user