mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +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 = '%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)
|
if (fputs(line, recovery_file) == EOF)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "recovery file could not be written, it could be necesary to create it manually\n");
|
fprintf(stderr, "recovery file could not be written, it could be necesary to create it manually\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user