diff options
author | Sebastian <sebasjm@gmail.com> | 2021-09-01 13:03:15 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-09-01 13:03:20 -0300 |
commit | 98d9dfb8c8637b8902e8b7f249834f807fa3e322 (patch) | |
tree | 26888b14c7fdf0a9b117452b8a4081d20a6ee85d | |
parent | a9c438700f56b76b6b879e2cfa2363921e95d0f0 (diff) | |
download | merchant-98d9dfb8c8637b8902e8b7f249834f807fa3e322.tar.gz merchant-98d9dfb8c8637b8902e8b7f249834f807fa3e322.zip |
wait for secmod rsa to build the keys
-rwxr-xr-x | src/testing/initialize_taler_system.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testing/initialize_taler_system.sh b/src/testing/initialize_taler_system.sh index 218de4bf..15e59988 100755 --- a/src/testing/initialize_taler_system.sh +++ b/src/testing/initialize_taler_system.sh | |||
@@ -138,6 +138,11 @@ taler-auditor-httpd -L INFO -c $CONF 2> taler-auditor-httpd.log & | |||
138 | 138 | ||
139 | echo " OK" | 139 | echo " OK" |
140 | 140 | ||
141 | echo -n "Wait RSA service to build keys..." | ||
142 | ( tail -f -n0 taler-exchange-secmod-rsa.log & ) | grep -q "Sending RSA SYNCED message" | ||
143 | echo " done" | ||
144 | |||
145 | echo -n "Waiting for the bank" | ||
141 | # Wait for bank to be available (usually the slowest) | 146 | # Wait for bank to be available (usually the slowest) |
142 | for n in `seq 1 50` | 147 | for n in `seq 1 50` |
143 | do | 148 | do |
@@ -145,7 +150,7 @@ do | |||
145 | sleep 0.2 | 150 | sleep 0.2 |
146 | OK=0 | 151 | OK=0 |
147 | # bank | 152 | # bank |
148 | wget --tries=1 --timeout=1 http://localhost:8082/ -o /dev/null -O /dev/null >/dev/null || continue | 153 | wget --waitretry=0 --timeout=1 http://localhost:8082/ -o /dev/null -O /dev/null >/dev/null || continue |
149 | OK=1 | 154 | OK=1 |
150 | break | 155 | break |
151 | done | 156 | done |