This commit is contained in:
Alexandre
2022-09-21 06:19:06 +02:00
committed by GitHub
parent 01efd16b56
commit f400aab1c3

View File

@@ -31,11 +31,9 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
# hadolint ignore=SC2015,DL4006,SC2013
RUN \
# Correct sync folder
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 \
&& grep -rl "/sync/" /etc/services.d | xargs sed -i 's|/sync/|/share/resiliosync|g' || true \
&& grep -rl " /sync" /etc/services.d | xargs sed -i 's| /sync| /share/resiliosync|g' || true \
&& sed -i 's=/sync/=/share/resiliosync/=g' /defaults/*
for file in $(grep -Esril "/sync[ '\"/]|/sync\$" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do sed -i "s=/sync=/share/resiliosync=g" "$file"; done \
# Correct sync folder
for file in $(grep -Esril "/downloads[ '\"/]|/downloads\$" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do sed -i "s=/downloads=/share/resiliosync-downloads=g" "$file"; done
# Global LSIO modifications
ARG CONFIGLOCATION="/share/resiliosync_config"