Skip to content

Commit 83cb2b4

Browse files
committed
Allow odder replication passwords (better bash quoting)
1 parent 07371b2 commit 83cb2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pgsql/bin/repmgr/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ $REPMGR_NODE_ID_PARAM_NAME=$(get_node_id)
1919
node_name=$NODE_NAME
2020
conninfo='user=$REPLICATION_USER password=$REPLICATION_PASSWORD host=$CLUSTER_NODE_NETWORK_NAME dbname=$REPLICATION_DB port=$REPLICATION_PRIMARY_PORT connect_timeout=$CONNECT_TIMEOUT'
2121
failover=automatic
22-
promote_command='PGPASSWORD=$REPLICATION_PASSWORD repmgr standby promote --log-level DEBUG --verbose'
23-
follow_command='PGPASSWORD=$REPLICATION_PASSWORD repmgr standby follow -W --log-level DEBUG --verbose'
22+
promote_command='PGPASSWORD=\'$REPLICATION_PASSWORD\' repmgr standby promote --log-level DEBUG --verbose'
23+
follow_command='PGPASSWORD=\'$REPLICATION_PASSWORD\' repmgr standby follow -W --log-level DEBUG --verbose'
2424
reconnect_attempts=$RECONNECT_ATTEMPTS
2525
reconnect_interval=$RECONNECT_INTERVAL
2626
$REPMGR_LOG_LEVEL_PARAM_NAME=$LOG_LEVEL

0 commit comments

Comments
 (0)