mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
e5adbd266f
commit
f728166b14
@@ -4,16 +4,16 @@ set -e
|
||||
|
||||
# Migration
|
||||
if [ -d /data/database ]; then
|
||||
bashio::log.warning "Database migrated to /config"
|
||||
mv /data/database /config
|
||||
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
|
||||
# Correct database location
|
||||
sed -i "s|/data/database|/config/database|g" /config/postgresql.conf
|
||||
bashio::log.warning "Config migrated to /config"
|
||||
mv /homeassistant/addons_config/postgres/* /config/
|
||||
rm -r /homeassistant/addons_config/postgres
|
||||
# Correct database location
|
||||
sed -i "s|/data/database|/config/database|g" /config/postgresql.conf
|
||||
fi
|
||||
|
||||
# touch sql file
|
||||
|
||||
Reference in New Issue
Block a user