diff --git a/wait-for-plesk.sh b/wait-for-plesk.sh index 5f89d1de..97d6589f 100755 --- a/wait-for-plesk.sh +++ b/wait-for-plesk.sh @@ -1,8 +1,16 @@ #!/bin/bash ### Copyright 1999-2024. WebPros International GmbH. +COUNTER=1 + while : ; do curl -ksL https://plesk:8443/ | grep "Plesk" > /dev/null [ $? -eq 0 ] && break + echo "($COUNTER) Waiting for the Plesk initialization..." sleep 5 + COUNTER=$((COUNTER + 1)) + if [ $COUNTER -eq 60 ]; then + echo "Too long, interrupting..." + break + fi done