mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Avoid overwriting the new password-in-recovery.conf formatting
Previously: did that work, then threw it away/overwrote it. Signed-off-by: Dan Farina <drfarina@acm.org>
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -1378,8 +1378,6 @@ create_recovery_file(const char *data_dir, char *master_conninfo)
|
||||
maxlen_snprintf(line, "primary_conninfo = '%s'\n", master_conninfo);
|
||||
}
|
||||
|
||||
maxlen_snprintf(line, "primary_conninfo = 'host=%s port=%s'\n", host,
|
||||
((masterport==NULL) ? "5432" : masterport));
|
||||
if (fputs(line, recovery_file) == EOF)
|
||||
{
|
||||
fprintf(stderr, "recovery file could not be written, it could be necesary to create it manually\n");
|
||||
|
||||
Reference in New Issue
Block a user