mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-23 14:30:31 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -2,3 +2,13 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user