Update 20-migration_config.sh

This commit is contained in:
Alexandre
2025-02-06 10:36:13 +01:00
committed by GitHub
parent 3db59ca39e
commit 07d59d0616

View File

@@ -14,8 +14,8 @@ CONFIGSOURCE="$(bashio::config "CONFIG_LOCATION")"
if [ -d "/homeassistant/addons_config/$slug" ] && [ ! -f "/homeassistant/addons_config/$slug/migrated" ]; then
echo "Migrating /homeassistant/addons_config/$slug"
mv /homeassistant/addons_config/"$slug"/* "$CONFIGSOURCE"/
touch /homeassistant/addons_config/$slug/migrated
sudo mv /homeassistant/addons_config/"$slug"/* "$CONFIGSOURCE"/
sudo touch /homeassistant/addons_config/$slug/migrated
fi
# Create directory