Skip to content

Commit a48da63

Browse files
committed
Try waiting for to start programmatically
1 parent 1c97d55 commit a48da63

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

certbot/certify-init.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
set -e
66

7-
wait_for_proxy() {
8-
echo "Waiting for proxy..."
9-
sleep 2m & wait ${!}
10-
}
11-
12-
wait_for_proxy
7+
until nc -z nginx 80; do
8+
echo "Waiting for nginx..."
9+
sleep 5s
10+
done
1311

1412
echo "Getting certificate..."
1513

0 commit comments

Comments
 (0)