Fix Postgres 15 permission denied issue
This commit is contained in:
parent
e7efc7da13
commit
c65ae73d1d
|
@ -11,6 +11,7 @@ uid: jdoe
|
||||||
cn: John DOE
|
cn: John DOE
|
||||||
sn: DOE
|
sn: DOE
|
||||||
gn: John
|
gn: John
|
||||||
|
displayName: John DOE
|
||||||
mail: john.doe@example.com
|
mail: john.doe@example.com
|
||||||
objectClass: inetOrgPerson
|
objectClass: inetOrgPerson
|
||||||
# Password : test1234
|
# 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 DATABASE $db_name;"
|
||||||
psql -U postgres -c "CREATE USER $db_user WITH ENCRYPTED PASSWORD '$db_pass';"
|
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 "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)
|
#Creating tables for ouath database (use oauth role)
|
||||||
info "Creation of tables for database $db_name (using $db_user)"
|
info "Creation of tables for database $db_name (using $db_user)"
|
||||||
|
|
Loading…
Reference in New Issue