Update 90-data_location.sh

This commit is contained in:
Alexandre
2022-12-19 21:50:41 +01:00
committed by GitHub
parent 27234c199c
commit 5de34ee94a

View File

@@ -11,7 +11,7 @@ if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then LOCATION=/config/addons_co
# Set data location
bashio::log.info "Setting data location to $LOCATION"
# shellcheck disable=SC2013
# shellcheck disable=SC2013,SC2086
for file in $(grep -sril "/config" /etc /defaults); do sed -i "s=/config=$LOCATION=g" $file; done
# Modify new location for database
sed -i "s|%%LOCATION%%|$LOCATION|g" /etc/cont-init.d/99-database_clean.sh