mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Don't run ssh connection test when --ignore-external-config-files was used
This commit is contained in:
committed by
Ian Barwick
parent
41fe58764e
commit
734ae1825e
2
repmgr.c
2
repmgr.c
@@ -1346,7 +1346,7 @@ do_standby_clone(void)
|
||||
{
|
||||
log_notice(_("copying configuration files from master\n"));
|
||||
r = test_ssh_connection(runtime_options.host, runtime_options.remote_user);
|
||||
if (r != 0)
|
||||
if (r != 0 && !(runtime_options.ignore_external_config_files && config_file_outside_pgdata))
|
||||
{
|
||||
log_err(_("aborting, remote host %s is not reachable.\n"),
|
||||
runtime_options.host);
|
||||
|
||||
Reference in New Issue
Block a user