Update Dockerfile

This commit is contained in:
Alexandre
2021-07-14 08:31:51 +02:00
committed by GitHub
parent 2a6e1fe3c9
commit aba75aabec

View File

@@ -38,14 +38,14 @@ RUN \
&& sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser \
\
# Correct config folder
&& grep -rl " /config" /etc/cont-init.d | xargs sed -i 's| /config| /config/resiliosync|g' \
&& grep -rl " /config" /etc/services.d | xargs sed -i 's| /config| /config/resiliosync|g' \
&& sed -i 's=/config/resiliosync=/config/resiliosync || true=g' /etc/cont-init.d/10-adduser \
&& grep -rl " /config" /etc/cont-init.d | xargs sed -i 's| /config| /config/resiliosync|g' || true \
&& grep -rl " /config" /etc/services.d | xargs sed -i 's| /config| /config/resiliosync|g' || true \
&& sed -i 's=/config/resiliosync=/config/resiliosync || true=g' /etc/cont-init.d/10-adduser || true \
\
# Correct sync folder
&& grep -rl "/sync/" /etc/cont-init.d | xargs sed -i 's|/sync/|/share/resiliosync|g' \
&& grep -rl " /sync" /etc/cont-init.d | xargs sed -i 's| /sync| /share/resiliosync|g' \
&& sed -i 's=/sync/=/share/resiliosync/=g' /defaults
&& grep -rl "/sync/" /etc/cont-init.d | xargs sed -i 's|/sync/|/share/resiliosync|g' || true \
&& grep -rl " /sync" /etc/cont-init.d | xargs sed -i 's| /sync| /share/resiliosync|g' || true \
&& sed -i 's=/sync/=/share/resiliosync/=g' /defaults || true
VOLUME [ "/data" ]