summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorSlawek Figiel <slawek@isc.org>2024-05-22 12:31:30 +0200
committerSlawek Figiel <slawek@isc.org>2024-05-23 14:18:15 +0200
commitbe86521a42c322b586cbd121adcd6e9fcfbbbefd (patch)
treeaa6b0d2f8774dac9cec4679bc8fbe947e83d9271 /hammer.py
parent[#2773] Update Changelog (diff)
downloadkea-be86521a42c322b586cbd121adcd6e9fcfbbbefd.tar.xz
kea-be86521a42c322b586cbd121adcd6e9fcfbbbefd.zip
[#2773] Update Hammer queries
Diffstat (limited to 'hammer.py')
-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')