[v3ify] Prevent change ownership of config

This commit is contained in:
Alexandre
2022-09-04 09:56:34 +02:00
parent 5bbfeaccfd
commit e1741a62c4
29 changed files with 29 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ RUN \
\
# 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 \
&& if [ -f /etc/s6-overlay/s6-rc.d/init-adduser/run ]; then sed -i "/config/d" /etc/s6-overlay/s6-rc.d/init-adduser/run; fi \
\
# Allow UID and GID setting
&& sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser \