File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,14 @@ export PATH="${PATH}:/usr/bin"
1010touch tests/environment/zitadel/service-user.json
1111chmod a+rw tests/environment/zitadel/service-user.json
1212
13- # We only take down ldap if the cert are too old and need regeneration
13+ # We only take down ldap if the certs are too old and need regeneration
1414ldap_down=" "
1515file_creation=$( date -r ./tests/environment/certs/ca.crt +%s || echo 0)
16- if [ $(( $(date +% s) - $file_creation )) -gt 2160000 ]; # 25 days old?
17- then
18- ldap_down=" -v ldap"
16+ if [ $(( $(date +% s) - file_creation)) -gt $(( 25 * 24 * 60 * 60 )) ]; then
17+ ldap_down=" -v ldap"
1918fi
2019
2120# Shut down any still running test-setup first
22- docker compose --project-directory ./tests/environment down -v test-setup $ldap_down || true
21+ docker compose --project-directory ./tests/environment down -v test-setup " $ldap_down " || true
2322docker compose --project-directory ./tests/environment up --wait \
2423 || (docker compose --project-directory ./tests/environment logs test-setup; exit 1)
You can’t perform that action at this time.
0 commit comments