]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3630] forge db init fix
authorMarcin Godzina <mgodzina@isc.org>
Wed, 23 Oct 2024 11:48:30 +0000 (11:48 +0000)
committerMarcin Godzina <mgodzina@isc.org>
Wed, 23 Oct 2024 11:48:30 +0000 (11:48 +0000)
hammer.py

index 81fd964bd9643ab98a78c385ef536a25ab80a5a0..fd3d59c7969624bc409006856478289a385567f2 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -1596,6 +1596,12 @@ def _configure_pgsql(system, features):
         cmd += "EOF\n\""
         execute(cmd, cwd='/tmp')
 
+        # This is needed for postgres >= 15
+        cmd = """sh -c \"cat <<EOF | sudo -u postgres psql -U postgres -d keadb
+            GRANT ALL PRIVILEGES ON SCHEMA public TO keauser;\n"""
+        cmd += 'EOF\n"'
+        execute(cmd, cwd='/tmp')
+
     log.info('postgresql just configured')