From 2e003c295692d0ce5901c05530ce4359872c2c53 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Thu, 25 Sep 2025 10:37:11 +0200 Subject: [PATCH] Update ntfy.sh --- ct/ntfy.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ct/ntfy.sh b/ct/ntfy.sh index 6baf046c..74f1f702 100644 --- a/ct/ntfy.sh +++ b/ct/ntfy.sh @@ -27,6 +27,24 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + + if [ -f /etc/apt/keyrings/archive.heckel.io.gpg ]; then + msg_info "Correcting old Ntfy Repository" + rm -f /etc/apt/keyrings/archive.heckel.io.gpg + rm -f /etc/apt/sources.list.d/archive.heckel.io.list + rm -f /etc/apt/sources.list.d/archive.heckel.io.list.bak + rm -f /etc/apt/sources.list.d/archive.heckel.io.sources + sudo curl -fsSL -o /etc/apt/keyrings/ntfy.gpg https://archive.ntfy.sh/apt/keyring.gpg + cat <<'EOF' >/etc/apt/sources.list.d/ntfy.sources +Types: deb +URIs: https://archive.ntfy.sh/apt/ +Suites: stable +Components: main +Signed-By: /etc/apt/keyrings/ntfy.gpg +EOF + msg_ok "Corrected old Ntfy Repository" + fi + msg_info "Updating $APP LXC" $STD apt update $STD apt -y upgrade