File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 11# Copyright 1999-2024. WebPros International GmbH.
22services :
3- tests :
3+ plesk :
44 build :
55 context : ../latest/
66 args :
@@ -15,6 +15,16 @@ services:
1515 - /run/lock
1616 volumes :
1717 - /sys/fs/cgroup:/sys/fs/cgroup
18- - .:/opt/tests/
1918 cgroup : host
20- command : /opt/tests/wait-for-plesk.sh
19+ tests :
20+ image : debian:bookworm
21+ depends_on :
22+ - plesk
23+ links :
24+ - plesk
25+ volumes :
26+ - .:/opt/tests/
27+ command : >
28+ bash -c "apt-get update
29+ && apt-get install -y curl
30+ && /opt/tests/wait-for-plesk.sh"
Original file line number Diff line number Diff line change 44COUNTER=1
55
66while : ; do
7- curl -ksL https://localhost:8443/ | grep " <title>Plesk" > /dev/null
8- [ $? -eq 0 ] && exit 0
7+ curl -ksL https://plesk:8443/ | grep " <title>Plesk" > /dev/null
8+ if [ $? -eq 0 ]; then
9+ echo " Plesk was successfully initialized."
10+ exit 0
11+ fi
912 echo " ($COUNTER ) Waiting for the Plesk initialization..."
1013 sleep 5
1114 COUNTER=$(( COUNTER + 1 ))
You can’t perform that action at this time.
0 commit comments