mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-18 21:39:12 +02:00
Create 01-migrate.sh
This commit is contained in:
13
calibre/rootfs/etc/cont-init.d/01-migrate.sh
Normal file
13
calibre/rootfs/etc/cont-init.d/01-migrate.sh
Normal 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
|
||||||
Reference in New Issue
Block a user