mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-28 02:06:04 +02:00
URi encoding
This commit is contained in:
@@ -65,6 +65,7 @@ bashio::log.info "Waiting for PostgreSQL to start..."
|
|||||||
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_PASSWORD="$(jq -rn --arg x "$DB_PASSWORD" '$x|@uri')"
|
||||||
DB_USERNAME=postgres
|
DB_USERNAME=postgres
|
||||||
if bashio::config.has_value "POSTGRES_USER"; then
|
if bashio::config.has_value "POSTGRES_USER"; then
|
||||||
DB_USERNAME="$(bashio::config "POSTGRES_USER")"
|
DB_USERNAME="$(bashio::config "POSTGRES_USER")"
|
||||||
|
|||||||
Reference in New Issue
Block a user