Skip to content

Commit 53626c5

Browse files
authored
Merge pull request #231 from postgrespro/fix-wait-zabbix
fix(ci): wait zabbix
2 parents c9c3609 + 558d5aa commit 53626c5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

github-actions-tests/zbx_install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ docker-compose -f ./docker-compose.yml up -d
4040

4141
echo "---> Waiting for Zabbix ..."
4242
WAITED=0
43-
until curl -sf http://localhost:80/ > /dev/null 2>&1; do
43+
until curl -sf -X POST -H 'Content-Type: application/json' \
44+
-d '{"jsonrpc":"2.0","method":"apiinfo.version","params":[],"id":1}' \
45+
http://localhost:80/api_jsonrpc.php 2>/dev/null | grep -q '"result"'; do
4446
sleep 5
4547
WAITED=$((WAITED + 5))
4648
if [ $WAITED -ge 300 ]; then

0 commit comments

Comments
 (0)