Update 01-migrate.sh

This commit is contained in:
Alexandre
2025-02-21 09:22:30 +01:00
committed by GitHub
parent 14ac05bba3
commit 83fea15094

View File

@@ -9,7 +9,7 @@ if [[ "$LOCATION" == "/config/addons_config/"* ]]; then
bashio::log.warning "Data folder was $LOCATION, it is migrated to /config/data. The previous folder is renamed to _migrated"
LOCATION="${LOCATION/config/homeassistant}"
mkdir -p /config/data
if [ -d $LOCATION ]; then
if [ -d "$LOCATION" ]; then
cp -rf "$LOCATION"/* /config/data/
mv "$LOCATION" "$LOCATION"_migrated
fi