From 734ae1825e3bf002c6da1721dc41a923e106b9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Marqu=C3=A9s?= Date: Thu, 9 Apr 2015 19:06:57 -0300 Subject: [PATCH] Don't run ssh connection test when --ignore-external-config-files was used --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 025e4f7d..30951f8b 100644 --- a/repmgr.c +++ b/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);