Skip to content

Commit

Permalink
Ensure the database is owned by user (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
mershad-manesh authored Nov 14, 2023
1 parent 86d8c8e commit 9d79270
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horizon/scripts/grafana-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ else
psql -c "alter role ${GF_DATABASE_USER} with password '${GF_DATABASE_PASSWORD}';"
psql -c "alter user ${GF_DATABASE_USER} set search_path to ${GF_DATABASE_NAME},public;"
psql -c "grant all on database ${GF_DATABASE_NAME} to ${GF_DATABASE_USER};"
psql -c "ALTER DATABASE ${GF_DATABASE_NAME} OWNER TO ${GF_DATABASE_USER};"
psql -c "GRANT USAGE, CREATE ON SCHEMA PUBLIC TO ${GF_DATABASE_USER};"
fi

0 comments on commit 9d79270

Please sign in to comment.