forked from ungleich-public/cdist
[type/__postgres_conf] Fix default detection when default is also set in config file
e.g. port is usually also set to the default value in postgresql.conf
This commit is contained in:
parent
1b49fec972
commit
803367b316
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ if su - "${postgres_user}" -c "psql postgres -twAc 'SHOW ${conf_name}'" \
|
||||||
then
|
then
|
||||||
echo present
|
echo present
|
||||||
else
|
else
|
||||||
case $(su - "${postgres_user}" -c "psql postgres -tAwc \"SELECT source FROM pg_settings WHERE name = '${conf_name}'\"")
|
case $(su - "${postgres_user}" -c "psql postgres -tAwc \"SELECT CASE WHEN source = 'default' OR setting = boot_val THEN 'default' ELSE source END FROM pg_settings WHERE name = '${conf_name}'\"")
|
||||||
in
|
in
|
||||||
('')
|
('')
|
||||||
# invalid configuration parameter
|
# invalid configuration parameter
|
||||||
|
|
Loading…
Reference in a new issue