Skip to content

Commit 3f54813

Browse files
committed
#1639 - fix - unless check in postgresql::server::instance::passwd does not respect custom database name (missing --dbname option)
1 parent 39a1dc9 commit 3f54813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/server/instance/passwd.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# environment variable. If the password is correct (current), this
6161
# command will exit with an exit code of 0, which will prevent the main
6262
# command from running.
63-
unless => "${psql_path} -h localhost -p ${port} -c 'select 1' > /dev/null",
63+
unless => "${shell_escape($psql_path)}${_dboption} -h localhost -p ${port} -c 'select 1' > /dev/null",
6464
path => '/usr/bin:/usr/local/bin:/bin',
6565
}
6666
}

0 commit comments

Comments
 (0)