File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696 fi
9797 TOKEN=$(curl -s -X POST "http://localhost:${NGINX_PORT}/api/v1/auth/login" \
9898 -H "Content-Type: application/json" \
99- -d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | jq -r '.accessToken')
99+ -d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | docker run -i --rm ghcr.io/jqlang/ jq -r '.accessToken')
100100 if [ "$TOKEN" = "null" ] || [ -z "$TOKEN" ]; then
101101 echo "✗ Failed to login - ensure services are running"
102102 exit 1
@@ -191,7 +191,7 @@ tasks:
191191 fi
192192 TOKEN=$(curl -s -X POST "http://localhost:${NGINX_PORT}/api/v1/auth/login" \
193193 -H "Content-Type: application/json" \
194- -d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | jq -r '.accessToken')
194+ -d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | docker run -i --rm ghcr.io/jqlang/ jq -r '.accessToken')
195195 if [ "$TOKEN" = "null" ] || [ -z "$TOKEN" ]; then
196196 echo "✗ Failed to login - ensure services are running"
197197 exit 1
You can’t perform that action at this time.
0 commit comments