mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-16 12:29:10 +02:00
Change config location https://github.com/alexbelgium/hassio-addons/issues/1177
This commit is contained in:
13
calibre_web/rootfs/etc/cont-init.d/00-a_migrate.sh
Normal file
13
calibre_web/rootfs/etc/cont-init.d/00-a_migrate.sh
Normal 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
|
||||
Reference in New Issue
Block a user