From c28790bbcacbed36967ee413ff25961a96dc33a7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 21 Nov 2023 21:10:35 +0100 Subject: [PATCH] Update 00-config_location.sh --- readarr/rootfs/etc/cont-init.d/00-config_location.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readarr/rootfs/etc/cont-init.d/00-config_location.sh b/readarr/rootfs/etc/cont-init.d/00-config_location.sh index 41be1ae65..00b06d43e 100755 --- a/readarr/rootfs/etc/cont-init.d/00-config_location.sh +++ b/readarr/rootfs/etc/cont-init.d/00-config_location.sh @@ -14,5 +14,6 @@ bashio::log.info "Config stored in $CONFIG_LOCATION" mkdir -p "$CONFIG_LOCATION" chown -R "$PUID:$PGID" "$CONFIG_LOCATION" -sed -i "s|/config/addons_config/readarr|$CONFIG_LOCATION|g" /etc/services.d/readarr/run -sed -i "s|/config/addons_config/readarr|$CONFIG_LOCATION|g" /etc/cont-init.d/30-config +for file in $(grep -sril "/config/addons_config/readarr" /etc /defaults); do + sed -i "s|/config/addons_config/readarr|$CONFIG_LOCATION|g" "$file" +done