mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
12 lines
376 B
Bash
Executable File
12 lines
376 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
slug=prowlarr
|
|
|
|
if [ -d "/homeassistant/addons_config/$slug" ]; then
|
|
echo "Migrating /homeassistant/addons_config/$slug to /addon_configs/xxx-$slug"
|
|
cp -rnf /homeassistant/addons_config/"$slug"/* /config/ || true
|
|
mv /homeassistant/addons_config/"$slug" /homeassistant/addons_config/"$slug"_migrated
|
|
fi
|