mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user