puppet: check_postgres_backup: Connect to the 'postgres' database

This allows the utility to run on trac.zulip.net, which doesn't have a 'zulip'
database.

(imported from commit c8eabb89e5e161191d6f2c92ca2b1428b17a9aa0)
This commit is contained in:
Zev Benjamin
2014-01-21 17:10:56 -05:00
parent 49f2657c8d
commit c4e1d9f02a

View File

@@ -16,7 +16,7 @@ def report(state, msg):
print "%s: %s" % (state, msg)
exit(states[state])
if subprocess.check_output(['psql', '-t', '-c',
if subprocess.check_output(['psql', 'postgres', '-t', '-c',
'SELECT pg_is_in_recovery()']).strip() != 'f':
report('OK', 'this is not the primary')