Update 00-data_location.sh

This commit is contained in:
Alexandre
2023-09-01 21:27:02 +02:00
committed by GitHub
parent eccc5bedfc
commit e613710abc

View File

@@ -34,7 +34,7 @@ fi
bashio::log.info "Setting data location to $LOCATION"
# Correct home locations
for files in /etc/s6-overlay/s6-rc.d/*/run; do
for file in /etc/s6-overlay/s6-rc.d/*/run; do
if [ "$(sed -n '1{/bash/p};q' "$file")" ]; then
sed -i "1a export HOME=$LOCATION" "$file"
sed -i "1a export FM_HOME=$LOCATION" "$file"