mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
correct database
This commit is contained in:
@@ -15,6 +15,7 @@ case $(bashio::config 'DB_CONNECTION') in
|
|||||||
# Use sqlite
|
# Use sqlite
|
||||||
sqlite_internal)
|
sqlite_internal)
|
||||||
bashio::log.info "Using built in sqlite"
|
bashio::log.info "Using built in sqlite"
|
||||||
|
export DB_CONNECTION=sqlite
|
||||||
touch ./storage/database/database.sqlite
|
touch ./storage/database/database.sqlite
|
||||||
php artisan migrate --seed
|
php artisan migrate --seed
|
||||||
php artisan firefly-iii:upgrade-database
|
php artisan firefly-iii:upgrade-database
|
||||||
@@ -30,6 +31,7 @@ mariadb_addon)
|
|||||||
"Please ensure it is installed and started"
|
"Please ensure it is installed and started"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export DB_CONNECTION=mysql
|
||||||
host=$(bashio::services "mysql" "host")
|
host=$(bashio::services "mysql" "host")
|
||||||
password=$(bashio::services "mysql" "password")
|
password=$(bashio::services "mysql" "password")
|
||||||
port=$(bashio::services "mysql" "port")
|
port=$(bashio::services "mysql" "port")
|
||||||
|
|||||||
Reference in New Issue
Block a user