mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Better code to adapt folders https://github.com/alexbelgium/hassio-addons/issues/466
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user