2021-05-25 08:44:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-05-25 19:05:40 +00:00
|
|
|
ARCH=$(uname -m)
|
2023-02-22 16:49:54 +00:00
|
|
|
if [ "$ARCH" == "x86_64" ]; then
|
2021-05-25 19:05:40 +00:00
|
|
|
ARCH="amd64"
|
2023-02-22 16:49:54 +00:00
|
|
|
elif [ "$ARCH" == "aarch64" ]; then
|
|
|
|
ARCH="arm64"
|
2021-05-25 08:44:32 +00:00
|
|
|
fi
|
2023-02-22 16:49:54 +00:00
|
|
|
curl -fsSLo "/opt/cloudflared" https://github.com/cloudflare/cloudflared/releases/download/2021.5.9/cloudflared-linux-"$ARCH"
|
2021-05-25 19:05:40 +00:00
|
|
|
chmod +x /opt/cloudflared
|
|
|
|
|
2021-05-25 08:44:32 +00:00
|
|
|
/opt/cloudflared update
|
2023-03-23 16:01:40 +00:00
|
|
|
/opt/cloudflared proxy-dns $CLOUDFLARED_OPTS &
|