Skip to content

Commit f041331

Browse files
committed
TECH Introduce 5 minutes timeout for the Plesk initialization
1 parent abc7c74 commit f041331

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

wait-for-plesk.sh

+8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#!/bin/bash
22
### Copyright 1999-2024. WebPros International GmbH.
33

4+
COUNTER=1
5+
46
while : ; do
57
curl -ksL https://plesk:8443/ | grep "<title>Plesk" > /dev/null
68
[ $? -eq 0 ] && break
9+
echo "($COUNTER) Waiting for the Plesk initialization..."
710
sleep 5
11+
COUNTER=$((COUNTER + 1))
12+
if [ $COUNTER -eq 60 ]; then
13+
echo "Too long, interrupting..."
14+
break
15+
fi
816
done

0 commit comments

Comments
 (0)