Skip to content

Commit 5e2168b

Browse files
authored
Cloudflared: Bump to Debian 13 (#7719)
1 parent c00c1de commit 5e2168b

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

ct/cloudflared.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-512}"
1212
var_disk="${var_disk:-2}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-12}"
14+
var_version="${var_version:-13}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -20,23 +20,23 @@ color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -d /var ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
msg_info "Updating $APP LXC"
31-
$STD apt-get update
32-
$STD apt-get -y upgrade
33-
msg_ok "Updated $APP LXC"
34-
exit
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -f /etc/systemd/system/cloudflared.service ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
msg_info "Updating $APP LXC"
31+
$STD apt update
32+
$STD apt -y upgrade
33+
msg_ok "Updated $APP LXC"
34+
exit
3535
}
3636

3737
start
3838
build_container
3939
description
4040

4141
msg_ok "Completed Successfully!\n"
42-
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
42+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

frontend/public/json/cloudflared.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ram": 512,
2424
"hdd": 2,
2525
"os": "debian",
26-
"version": "12"
26+
"version": "13"
2727
}
2828
}
2929
],

install/cloudflared-install.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ update_os
1515

1616
msg_info "Installing Cloudflared"
1717
mkdir -p --mode=0755 /usr/share/keyrings
18-
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
1918
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg >/usr/share/keyrings/cloudflare-main.gpg
20-
echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared $VERSION main" >/etc/apt/sources.list.d/cloudflared.list
21-
$STD apt-get update
22-
$STD apt-get install -y cloudflared
19+
cat <<EOF >/etc/apt/sources.list.d/cloudflared.sources
20+
Types: deb
21+
URIs: https://pkg.cloudflare.com/cloudflared/
22+
Suites: any
23+
Components: main
24+
Signed-By: /usr/share/keyrings/cloudflare-main.gpg
25+
EOF
26+
$STD apt update
27+
$STD apt install -y cloudflared
2328
msg_ok "Installed Cloudflared"
2429

2530
read -r -p "${TAB3}Would you like to configure cloudflared as a DNS-over-HTTPS (DoH) proxy? <y/N> " prompt
@@ -61,6 +66,7 @@ motd_ssh
6166
customize
6267

6368
msg_info "Cleaning up"
64-
$STD apt-get -y autoremove
65-
$STD apt-get -y autoclean
69+
$STD apt -y autoremove
70+
$STD apt -y autoclean
71+
$STD apt -y clean
6672
msg_ok "Cleaned"

0 commit comments

Comments
 (0)