mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Force to enter a password for the superuser in the witness, this is
in case we need to send a password to connect as stated in master's pg_hba.conf.
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -1532,7 +1532,7 @@ do_witness_create(void)
|
|||||||
|
|
||||||
/* Create the cluster for witness */
|
/* Create the cluster for witness */
|
||||||
/* We assume the pg_ctl script is in the PATH */
|
/* We assume the pg_ctl script is in the PATH */
|
||||||
sprintf(script, "pg_ctl -D %s init", runtime_options.dest_dir);
|
sprintf(script, "pg_ctl -D %s init -o \"-W\"", runtime_options.dest_dir);
|
||||||
log_info("Initialize cluster for witness: %s.\n", script);
|
log_info("Initialize cluster for witness: %s.\n", script);
|
||||||
|
|
||||||
r = system(script);
|
r = system(script);
|
||||||
|
|||||||
Reference in New Issue
Block a user