Not symlink

This commit is contained in:
Alexandre
2025-05-22 10:48:58 +02:00
committed by GitHub
parent 868776bcba
commit f408cf4af5

View File

@@ -6,7 +6,7 @@ set -e
# Migrate database #
####################
if [ -d /homeassistant/addons_config/calibre-web ]; then
if [ -d /homeassistant/addons_config/calibre-web ] && [ ! -L /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