File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 296296 i=1
297297 for host in $( complex-bash-env iterate LDAP_REPLICATION_HOSTS)
298298 do
299- sed -i " s|{{ LDAP_REPLICATION_HOSTS }}|olcServerID: $i ${host} \n{{ LDAP_REPLICATION_HOSTS }}|g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
300- sed -i " s|{{ LDAP_REPLICATION_HOSTS_CONFIG_SYNC_REPL }}|olcSyncRepl: rid=00$i provider=${host} ${LDAP_REPLICATION_CONFIG_SYNCPROV} \n{{ LDAP_REPLICATION_HOSTS_CONFIG_SYNC_REPL }}|g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
301- sed -i " s|{{ LDAP_REPLICATION_HOSTS_HDB_SYNC_REPL }}|olcSyncRepl: rid=10$i provider=${host} ${LDAP_REPLICATION_HDB_SYNCPROV} \n{{ LDAP_REPLICATION_HOSTS_HDB_SYNC_REPL }}|g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
299+ sed -i " s|{{ LDAP_REPLICATION_HOSTS }}|olcServerID: $i ${! host} \n{{ LDAP_REPLICATION_HOSTS }}|g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
300+ sed -i " s|{{ LDAP_REPLICATION_HOSTS_CONFIG_SYNC_REPL }}|olcSyncRepl: rid=00$i provider=${! host} ${LDAP_REPLICATION_CONFIG_SYNCPROV} \n{{ LDAP_REPLICATION_HOSTS_CONFIG_SYNC_REPL }}|g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
301+ sed -i " s|{{ LDAP_REPLICATION_HOSTS_HDB_SYNC_REPL }}|olcSyncRepl: rid=10$i provider=${! host} ${LDAP_REPLICATION_HDB_SYNCPROV} \n{{ LDAP_REPLICATION_HOSTS_HDB_SYNC_REPL }}|g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
302302
303303 (( i++ ))
304304 done
You can’t perform that action at this time.
0 commit comments