mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-14 03:18:02 +02:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
b8ad99cc82
commit
769d9bf0a6
@@ -97,7 +97,7 @@ setup_root_user() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if the root user exists.
|
||||
# Check if the root user exists.
|
||||
if ! psql "postgres://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}" -tAc "SELECT 1 FROM pg_roles WHERE rolname='root'" | grep -q 1; then
|
||||
bashio::log.info "Root user does not exist. Creating root user with DB_ROOT_PASSWORD..."
|
||||
psql "postgres://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}" << EOF
|
||||
|
||||
Reference in New Issue
Block a user