mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 08:16:04 +02:00
Update 01-migrate.sh
This commit is contained in:
@@ -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"
|
bashio::log.warning "Data folder was $LOCATION, it is migrated to /config/data. The previous folder is renamed to _migrated"
|
||||||
LOCATION="${LOCATION/config/homeassistant}"
|
LOCATION="${LOCATION/config/homeassistant}"
|
||||||
mkdir -p /config/data
|
mkdir -p /config/data
|
||||||
if [ -d $LOCATION ]; then
|
if [ -d "$LOCATION" ]; then
|
||||||
cp -rf "$LOCATION"/* /config/data/
|
cp -rf "$LOCATION"/* /config/data/
|
||||||
mv "$LOCATION" "$LOCATION"_migrated
|
mv "$LOCATION" "$LOCATION"_migrated
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user