mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01: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"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user