mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Update 10-cloudflared.sh
This commit is contained in:
parent
7208854fb9
commit
a73f13638b
@ -1,15 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ! test -f /opt/cni/bin/macvlan; then
|
||||
ARCH=$(uname -m)
|
||||
if [ $ARCH == "x86_64" ]
|
||||
then
|
||||
ARCH="amd64"
|
||||
elif [ $ARCH == "aarch64" ]; then
|
||||
ARCH="arm64"
|
||||
fi
|
||||
curl -fsSLo "/opt/cloudflared" https://github.com/cloudflare/cloudflared/releases/download/2021.5.9/cloudflared-linux-$ARCH
|
||||
chmod +x /opt/cloudflared
|
||||
ARCH=$(uname -m)
|
||||
if [ $ARCH == "x86_64" ]
|
||||
then
|
||||
ARCH="amd64"
|
||||
elif [ $ARCH == "aarch64" ]; then
|
||||
ARCH="arm64"
|
||||
fi
|
||||
curl -fsSLo "/opt/cloudflared" https://github.com/cloudflare/cloudflared/releases/download/2021.5.9/cloudflared-linux-$ARCH
|
||||
chmod +x /opt/cloudflared
|
||||
|
||||
/opt/cloudflared update
|
||||
/opt/cloudflared proxy-dns $CLOUDFLARED_OPTS &
|
||||
/opt/cloudflared proxy-dns $CLOUDFLARED_OPTS &
|
||||
|
Loading…
Reference in New Issue
Block a user