From 3f54813722dd7b0864a2674f806e6a5caf6d88fb Mon Sep 17 00:00:00 2001 From: Jasper Aikema Date: Thu, 12 Jun 2025 13:52:29 +0200 Subject: [PATCH] #1639 - fix - unless check in postgresql::server::instance::passwd does not respect custom database name (missing --dbname option) --- manifests/server/instance/passwd.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/instance/passwd.pp b/manifests/server/instance/passwd.pp index a4bc20f467..af556af3dd 100644 --- a/manifests/server/instance/passwd.pp +++ b/manifests/server/instance/passwd.pp @@ -60,7 +60,7 @@ # environment variable. If the password is correct (current), this # command will exit with an exit code of 0, which will prevent the main # command from running. - unless => "${psql_path} -h localhost -p ${port} -c 'select 1' > /dev/null", + unless => "${shell_escape($psql_path)}${_dboption} -h localhost -p ${port} -c 'select 1' > /dev/null", path => '/usr/bin:/usr/local/bin:/bin', } }