mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Migration
|
||||||
if [ -d /data/database ]; then
|
if [ -d /data/database ]; then
|
||||||
bashio::log.warning "Database migrated to /config"
|
bashio::log.warning "Database migrated to /config"
|
||||||
mv /data/database /config
|
mv /data/database /config
|
||||||
@@ -11,4 +12,6 @@ if [ -f /homeassistant/addons_config/postgres/config.yaml ]; then
|
|||||||
bashio::log.warning "Config migrated to /config"
|
bashio::log.warning "Config migrated to /config"
|
||||||
mv /homeassistant/addons_config/postgres/* /config/
|
mv /homeassistant/addons_config/postgres/* /config/
|
||||||
rm -r /homeassistant/addons_config/postgres
|
rm -r /homeassistant/addons_config/postgres
|
||||||
|
# Correct database location
|
||||||
|
sed -i "s|/data/|/config/|g" /config/postgresql.conf
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user