Skip to content

Commit 5c0eefa

Browse files
ntfy: bump to debian 13 (#7895)
Co-authored-by: CanbiZ <[email protected]>
1 parent 7c5c654 commit 5c0eefa

File tree

3 files changed

+42
-21
lines changed

3 files changed

+42
-21
lines changed

ct/ntfy.sh

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3-
# Copyright (c) 2021-2025 tteck
4-
# Author: tteck (tteckster)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: CrazyWolf13
55
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
66
# Source: https://ntfy.sh/
77

@@ -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"
@@ -23,13 +23,31 @@ function update_script() {
2323
header_info
2424
check_container_storage
2525
check_container_resources
26-
if [[ ! -d /var ]]; then
26+
if [[ ! -d /etc/ntfy ]]; then
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30+
31+
if [ -f /etc/apt/keyrings/archive.heckel.io.gpg ]; then
32+
msg_info "Correcting old Ntfy Repository"
33+
rm -f /etc/apt/keyrings/archive.heckel.io.gpg
34+
rm -f /etc/apt/sources.list.d/archive.heckel.io.list
35+
rm -f /etc/apt/sources.list.d/archive.heckel.io.list.bak
36+
rm -f /etc/apt/sources.list.d/archive.heckel.io.sources
37+
curl -fsSL -o /etc/apt/keyrings/ntfy.gpg https://archive.ntfy.sh/apt/keyring.gpg
38+
cat <<'EOF' >/etc/apt/sources.list.d/ntfy.sources
39+
Types: deb
40+
URIs: https://archive.ntfy.sh/apt/
41+
Suites: stable
42+
Components: main
43+
Signed-By: /etc/apt/keyrings/ntfy.gpg
44+
EOF
45+
msg_ok "Corrected old Ntfy Repository"
46+
fi
47+
3048
msg_info "Updating $APP LXC"
31-
$STD apt-get update
32-
$STD apt-get -y upgrade
49+
$STD apt update
50+
$STD apt -y upgrade
3351
msg_ok "Updated $APP LXC"
3452
exit
3553
}
@@ -41,4 +59,4 @@ description
4159
msg_ok "Completed Successfully!\n"
4260
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4361
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
44-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
62+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

frontend/public/json/ntfy.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/ntfy-install.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

3-
# Copyright (c) 2021-2025 tteck
4-
# Author: tteck (tteckster)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: CrazyWolf13
55
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
66
# Source: https://ntfy.sh/
77

@@ -13,24 +13,27 @@ setting_up_container
1313
network_check
1414
update_os
1515

16-
msg_info "Installing Dependencies"
17-
$STD apt-get install -y \
18-
apt-transport-https
19-
msg_ok "Installed Dependencies"
20-
2116
msg_info "Installing ntfy"
2217
mkdir -p /etc/apt/keyrings
23-
curl -fsSL https://archive.heckel.io/apt/pubkey.txt | gpg --dearmor -o /etc/apt/keyrings/archive.heckel.io.gpg
24-
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/archive.heckel.io.gpg] https://archive.heckel.io/apt debian main" >/etc/apt/sources.list.d/archive.heckel.io.list
25-
$STD apt-get update
26-
$STD apt-get install -y ntfy
18+
curl -fsSL -o /etc/apt/keyrings/ntfy.gpg https://archive.ntfy.sh/apt/keyring.gpg
19+
cat <<EOF >/etc/apt/sources.list.d/ntfy.sources
20+
Types: deb
21+
URIs: https://archive.ntfy.sh/apt/
22+
Suites: stable
23+
Components: main
24+
Signed-By: /etc/apt/keyrings/ntfy.gpg
25+
EOF
26+
27+
$STD apt update
28+
$STD apt install -y ntfy
2729
systemctl enable -q --now ntfy
2830
msg_ok "Installed ntfy"
2931

3032
motd_ssh
3133
customize
3234

3335
msg_info "Cleaning up"
34-
$STD apt-get -y autoremove
35-
$STD apt-get -y autoclean
36+
$STD apt -y autoremove
37+
$STD apt -y autoclean
38+
$STD apt -y clean
3639
msg_ok "Cleaned"

0 commit comments

Comments
 (0)