Fix Postgres 15 permission denied issue

This commit is contained in:
Denis CLAVIER 2023-04-04 13:09:14 +04:00
parent e7efc7da13
commit c65ae73d1d
3 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ uid: jdoe
cn: John DOE
sn: DOE
gn: John
displayName: John DOE
mail: john.doe@example.com
objectClass: inetOrgPerson
# Password : test1234

View File

@ -37,6 +37,7 @@ info "Creation of role $db_user and database $db_name ..."
psql -U postgres -c "CREATE DATABASE $db_name;"
psql -U postgres -c "CREATE USER $db_user WITH ENCRYPTED PASSWORD '$db_pass';"
psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE $db_name TO $db_user;"
psql -U postgres -c "ALTER DATABASE $db_name OWNER TO $db_user;"
#Creating tables for ouath database (use oauth role)
info "Creation of tables for database $db_name (using $db_user)"