File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
root/etc/s6-overlay/s6-rc.d
init-mod-universal-cloudflared-setup
svc-mod-universal-cloudflared Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,10 @@ echo "**** Cloudflared setup script init... ****"
44
55echo "**** Checking cloudflared setup script requirements... ****"
66ARCH="$(command arch)"
7- if [ "${ARCH}" = "x86_64" ]; then
7+ if [ "${ARCH}" = "x86_64" ]; then
88 ARCH="amd64"
9- elif [ "${ARCH}" = "aarch64" ]; then
10- ARCH="arm64"
11- elif [ "${ARCH}" = "armv7l" ]; then
12- echo "**** The universal cloudflared mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
13- exit 0
9+ elif [ "${ARCH}" = "aarch64" ]; then
10+ ARCH="arm64"
1411else
1512 echo "**** Unsupported Linux architecture ${ARCH} found, exiting... ****"
1613 exit 1
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3- if [[ $(uname -m) = "armv7l" ]]; then
4- echo "**** The universal cloudflared mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
5- sleep infinity
6- fi
7-
83if [[ -n "${CF_REMOTE_MANAGE_TOKEN}" ]]; then
94 exec s6-setuidgid abc cloudflared tunnel --no-autoupdate run --token ${CF_REMOTE_MANAGE_TOKEN}
105elif [[ ${#CF_ZONE_ID} -gt 0 ]] && [[ ${#CF_ACCOUNT_ID} -gt 0 ]] && [[ ${#CF_API_TOKEN} -gt 0 ]] && [[ ${#CF_TUNNEL_NAME} -gt 0 ]] && [[ ${#CF_TUNNEL_CONFIG} -gt 0 ]] && [[ ${#CF_TUNNEL_PASSWORD} -gt 31 ]]; then
You can’t perform that action at this time.
0 commit comments