Update 10-cloudflared.sh

This commit is contained in:
John D 2021-05-25 12:05:40 -07:00 committed by GitHub
parent 7208854fb9
commit a73f13638b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
if ! test -f /opt/cni/bin/macvlan; then
ARCH=$(uname -m) ARCH=$(uname -m)
if [ $ARCH == "x86_64" ] if [ $ARCH == "x86_64" ]
then then
@ -10,6 +9,6 @@ if ! test -f /opt/cni/bin/macvlan; then
fi fi
curl -fsSLo "/opt/cloudflared" https://github.com/cloudflare/cloudflared/releases/download/2021.5.9/cloudflared-linux-$ARCH curl -fsSLo "/opt/cloudflared" https://github.com/cloudflare/cloudflared/releases/download/2021.5.9/cloudflared-linux-$ARCH
chmod +x /opt/cloudflared chmod +x /opt/cloudflared
fi
/opt/cloudflared update /opt/cloudflared update
/opt/cloudflared proxy-dns $CLOUDFLARED_OPTS & /opt/cloudflared proxy-dns $CLOUDFLARED_OPTS &