mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Change default port for secvisogram (#262)
* Change default port for secvisogram * Following change from https://github.com/secvisogram/csaf-validator-service/pull/14 * Improve script for setting up validation service * Add a test to fail if we cannot connect. * Add copyright header.
This commit is contained in:
parent
2614c1a4ba
commit
86fb441446
4 changed files with 19 additions and 4 deletions
|
|
@ -116,12 +116,17 @@ set +e
|
|||
echo
|
||||
echo === Try to reach the validator service ten times, up to nine fails are ok
|
||||
for ((i = 1; i <= 10; i++)); do
|
||||
if [ $(curl -IL http://localhost:3000/api/v1/tests | grep -c HTTP ) != "0" ]; then
|
||||
if [ $(curl -IL http://localhost:8082/api/v1/tests | grep -c HTTP ) != "0" ]; then
|
||||
break
|
||||
fi
|
||||
sleep 3
|
||||
done
|
||||
|
||||
if [ $i == 11 ]; then
|
||||
echo Could not connect to validation service!
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Upload files
|
||||
./uploadToProvider.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue