Fix Postgres 15 permission denied issue
This commit is contained in:
parent
e7efc7da13
commit
c65ae73d1d
|
@ -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
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Adapted from Oauth2-server-php cookbook
|
||||
* @see http://bshaffer.github.io/oauth2-server-php-docs/cookbook/
|
||||
|
|
Loading…
Reference in New Issue