switch from wget to curl
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user