Create 01-migrate.sh

This commit is contained in:
Alexandre
2024-01-04 15:52:24 +01:00
committed by GitHub
parent f5d953e475
commit 304076cd56

View File

@@ -0,0 +1,13 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set -e
####################
# Migrate database #
####################
if [ -f /homeassistant/addons_config/calibre ]; then
echo "Moving database to new location /config"
cp -rnf /homeassistant/addons_config/calibre/* /config/
rm -r /homeassistant/addons_config/calibre
fi