mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-09 14:45:47 +02:00
[Issue #182] do not set remote parameters into config when running add-instance via ssh
This commit is contained in:
parent
925b7d588e
commit
4a247e8311
17
src/init.c
17
src/init.c
@ -103,6 +103,23 @@ do_add_instance(InstanceConfig *instance)
|
||||
SOURCE_FILE);
|
||||
config_set_opt(instance_options, &instance->xlog_seg_size,
|
||||
SOURCE_FILE);
|
||||
|
||||
/* Kludge: do not save remote options into config */
|
||||
config_set_opt(instance_options, &instance_config.remote.host,
|
||||
SOURCE_DEFAULT);
|
||||
config_set_opt(instance_options, &instance_config.remote.proto,
|
||||
SOURCE_DEFAULT);
|
||||
config_set_opt(instance_options, &instance_config.remote.port,
|
||||
SOURCE_DEFAULT);
|
||||
config_set_opt(instance_options, &instance_config.remote.path,
|
||||
SOURCE_DEFAULT);
|
||||
config_set_opt(instance_options, &instance_config.remote.user,
|
||||
SOURCE_DEFAULT);
|
||||
config_set_opt(instance_options, &instance_config.remote.ssh_options,
|
||||
SOURCE_DEFAULT);
|
||||
config_set_opt(instance_options, &instance_config.remote.ssh_config,
|
||||
SOURCE_DEFAULT);
|
||||
|
||||
/* pgdata was set through command line */
|
||||
do_set_config(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user