summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhammer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/hammer.py b/hammer.py
index 17182bef4a..7ceae2fbfe 100755
--- a/hammer.py
+++ b/hammer.py
@@ -1556,9 +1556,8 @@ def _configure_pgsql(system, revision, features):
execute(cmd, cwd='/tmp')
# This is needed for postgres >= 15
- cmd = """bash -c \"cat <<EOF | sudo -u postgres psql postgres
- GRANT ALL ON DATABASE keatest TO keatest;
- ALTER DATABASE keatest OWNER TO keatest;\n"""
+ cmd = """bash -c \"cat <<EOF | sudo -u postgres psql -U postgres -d keatest
+ GRANT ALL PRIVILEGES ON SCHEMA public TO keatest;\n"""
cmd += 'EOF\n"'
execute(cmd, cwd='/tmp')