Skip to content

Commit

Permalink
Cleaner Retry
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 23, 2024
1 parent 48f58fa commit 1777c4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ sed -i "s|CUSTOM_ORG|${ORG}|" "/container/modify.ldif"
sed -i "s|CUSTOM_TLD|${TLD}|" "/container/modify.ldif"
sed -i "s|CUSTOM_SERVICE_PASSWORD|${SERVICE_PASSWORD}|" "/container/modify.ldif"

echo "Sleeping"
sleep 10

echo "attempting modify"
ldapmodify -D 'cn=admin,dc=cotak,dc=gov' -H ldap://localhost:389 -w "${LDAP_ADMIN_PASSWORD}" -f /container/modify.ldif
until ldapmodify -D 'cn=admin,dc=cotak,dc=gov' -H ldap://localhost:389 -w "${LDAP_ADMIN_PASSWORD}" -f /container/modify.ldif
do
echo "sleeping for 10s"
sleep 10
done

wait

0 comments on commit 1777c4c

Please sign in to comment.