We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc7c74 commit f041331Copy full SHA for f041331
wait-for-plesk.sh
@@ -1,8 +1,16 @@
1
#!/bin/bash
2
### Copyright 1999-2024. WebPros International GmbH.
3
4
+COUNTER=1
5
+
6
while : ; do
7
curl -ksL https://plesk:8443/ | grep "<title>Plesk" > /dev/null
8
[ $? -eq 0 ] && break
9
+ echo "($COUNTER) Waiting for the Plesk initialization..."
10
sleep 5
11
+ COUNTER=$((COUNTER + 1))
12
+ if [ $COUNTER -eq 60 ]; then
13
+ echo "Too long, interrupting..."
14
+ break
15
+ fi
16
done
0 commit comments