mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-26 07:50:33 +02:00
Correct database user
https://github.com/alexbelgium/hassio-addons/issues/1213
This commit is contained in:
@@ -13,8 +13,7 @@ bashio::log.info "Enabling vector.rs"
|
|||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_HOSTNAME=localhost
|
DB_HOSTNAME=localhost
|
||||||
DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')"
|
DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')"
|
||||||
DB_USERNAME=postgres
|
if bashio::config.has_value "DB_USERNAME"; then DB_USERNAME="$(bashio::config "DB_USERNAME")"; else DB_USERNAME=postgres; fi
|
||||||
if bashio::config.has_value "POSTGRES_USER"; then POSTGRES_USER="$(bashio::config "POSTGRES_USER")"; else POSTGRES_USER=postgres; fi
|
|
||||||
|
|
||||||
export DB_PORT
|
export DB_PORT
|
||||||
export DB_HOSTNAME
|
export DB_HOSTNAME
|
||||||
|
|||||||
Reference in New Issue
Block a user