This commit is contained in:
Alexandre
2024-01-12 20:37:44 +01:00
parent 6434f0e1a6
commit 5d2645ca4d
7 changed files with 61 additions and 17 deletions

View File

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