Update 20-folders.sh

This commit is contained in:
Alexandre
2024-01-31 04:51:17 +01:00
committed by GitHub
parent 5ce2a4d5da
commit ae694863a6

View File

@@ -2,3 +2,13 @@
# shellcheck shell=bash
set -e
if [ -d /data/database ]; then
bashio::log.warning "Database migrated to /config"
mv /data/database /config
fi
if [ -f /homeassistant/addons_config/postgres/config.yaml ]; then
bashio::log.warning "Config migrated to /config"
mv /homeassistant/addons_config/postgres/* /config/
rm -r /homeassistant/addons_config/postgres
fi