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 # hadolint ignore=SC2015,DL4006,SC2013
RUN \ RUN \
# Correct sync folder # Correct sync folder
grep -rl "/sync/" /etc/cont-init.d | xargs sed -i 's|/sync/|/share/resiliosync|g' || true \ 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 \
&& grep -rl " /sync" /etc/cont-init.d | xargs sed -i 's| /sync| /share/resiliosync|g' || true \ # Correct sync folder
&& grep -rl "/sync/" /etc/services.d | xargs sed -i 's|/sync/|/share/resiliosync|g' || true \ 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
&& grep -rl " /sync" /etc/services.d | xargs sed -i 's| /sync| /share/resiliosync|g' || true \
&& sed -i 's=/sync/=/share/resiliosync/=g' /defaults/*
# Global LSIO modifications # Global LSIO modifications
ARG CONFIGLOCATION="/share/resiliosync_config" ARG CONFIGLOCATION="/share/resiliosync_config"