Update 00-config_location.sh

This commit is contained in:
Alexandre
2023-11-21 21:10:35 +01:00
committed by GitHub
parent f73fc59d47
commit c28790bbca

View File

@@ -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