11#! /usr/bin/env bash
22source <( 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}"
1111var_ram=" ${var_ram:- 512} "
1212var_disk=" ${var_disk:- 2} "
1313var_os=" ${var_os:- debian} "
14- var_version=" ${var_version:- 12 } "
14+ var_version=" ${var_version:- 13 } "
1515var_unprivileged=" ${var_unprivileged:- 1} "
1616
1717header_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
4159msg_ok " Completed Successfully!\n"
4260echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
4361echo -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} "
0 commit comments