Skip to content

Commit

Permalink
Rotate <REPLICATION.. tags to {{REPLICATION
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Dec 4, 2023
1 parent 03c8d00 commit e590689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/assets/functions/10-openldap
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ EOF
for replhost in $replhosts; do
sed -i \
-e "s|{{REPLICATION_HOSTS}}|olcServerID: $i $replhost\n{{REPLICATION_HOSTS}}|g" \
-e "s|{{REPLICATION_HOSTS_CONFIG_SYNC_REPL}}|olcSyncRepl: rid=00$i provider=$replhost ${REPLICATION_CONFIG_SYNCPROV:-"binddn=\"cn=config\" bindmethod=simple credentials=$CONFIG_PASS searchbase=\"cn=config\" type=refreshAndPersist retry=\"5 5 60 +\" timeout=1 filter=\"(!(objectclass=olcGlobal))\""}\n<REPLICATION_HOSTS_CONFIG_SYNC_REPL>|g" \
-e "s|{{REPLICATION_HOSTS_DB_SYNC_REPL}}|olcSyncRepl: rid=10$i provider=$replhost ${REPLICATION_DB_SYNCPROV:-"binddn=\"cn=admin,$BASE_DN\" bindmethod=simple credentials=$ADMIN_PASS searchbase=\"$BASE_DN\" type=refreshAndPersist interval=00:00:00:10 retry=\"5 5 60 +\" timeout=1"}\n<REPLICATION_HOSTS_DB_SYNC_REPL>|g" \
-e "s|{{REPLICATION_HOSTS_CONFIG_SYNC_REPL}}|olcSyncRepl: rid=00$i provider=$replhost ${REPLICATION_CONFIG_SYNCPROV:-"binddn=\"cn=config\" bindmethod=simple credentials=$CONFIG_PASS searchbase=\"cn=config\" type=refreshAndPersist retry=\"5 5 60 +\" timeout=1 filter=\"(!(objectclass=olcGlobal))\""}\n{{REPLICATION_HOSTS_CONFIG_SYNC_REPL}}|g" \
-e "s|{{REPLICATION_HOSTS_DB_SYNC_REPL}}|olcSyncRepl: rid=10$i provider=$replhost ${REPLICATION_DB_SYNCPROV:-"binddn=\"cn=admin,$BASE_DN\" bindmethod=simple credentials=$ADMIN_PASS searchbase=\"$BASE_DN\" type=refreshAndPersist interval=00:00:00:10 retry=\"5 5 60 +\" timeout=1"}\n{{REPLICATION_HOSTS_DB_SYNC_REPL}}|g" \
/assets/slapd/config/replication/replication-enable.ldif
((i++))
done
Expand Down

0 comments on commit e590689

Please sign in to comment.