Skip to content

Commit

Permalink
fixup! Fixes #24831: On postgresql 15, in some cases, user rudder can…
Browse files Browse the repository at this point in the history
…not create or update the tables

Fixes #24831: On postgresql 15, in some cases, user rudder cannot create or update the tables
  • Loading branch information
ncharles committed May 3, 2024
1 parent 499f279 commit 08e57d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rudder-server/SOURCES/rudder-server-postinst
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ then

# ensure rights for rudder user on database rudder, to ensure it can create or update tables
# necessary in some cases for postgresql 15
su postgres -s /bin/sh -c "psql -q -c \"GRANT ALL ON DATABASE rudder to rudder\"" >> ${LOG_FILE}
su postgres -s /bin/sh -c "psql -q -c \"GRANT ALL ON DATABASE ${DBNAME} to ${USERNAME}\"" >> ${LOG_FILE}
else
##############################
# we are on a remote database
Expand Down

0 comments on commit 08e57d9

Please sign in to comment.