switch from wget to curl

This commit is contained in:
2024-07-18 16:13:37 -07:00
parent 13e5c23ed9
commit 80b3a8e39b
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
FROM alpine
RUN apk add --no-cache curl
COPY portcheck.sh /usr/local/bin/portcheck.sh
ENTRYPOINT ["/usr/local/bin/portcheck.sh"]

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env ash
while [ `wget --no-check-certificate -qO /dev/null $1; echo $?` -ne 0 ]
while [ `curl -sko /dev/null $1; echo $?` -ne 0 ]
do
sleep 1
done