This commit is contained in:
Slaviša Arežina
2025-12-25 15:21:20 +01:00
committed by GitHub
parent e926182748
commit 37007f1efe
2 changed files with 15 additions and 24 deletions

View File

@ -34,21 +34,18 @@ function update_script() {
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
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
setup_deb822_repo \
"ntfy" \
"https://archive.ntfy.sh/apt/keyring.gpg" \
"https://archive.ntfy.sh/apt/" \
"stable"
msg_ok "Corrected old Ntfy Repository"
fi
msg_info "Updating $APP LXC"
msg_info "Updating ntfy"
$STD apt update
$STD apt -y upgrade
msg_ok "Updated $APP LXC"
$STD apt upgrade -y
msg_ok "Updated ntfy"
msg_ok "Updated successfully!"
exit
}

View File

@ -13,21 +13,15 @@ setting_up_container
network_check
update_os
msg_info "Installing ntfy"
mkdir -p /etc/apt/keyrings
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
$STD apt update
msg_info "Setting up ntfy"
setup_deb822_repo \
"ntfy" \
"https://archive.ntfy.sh/apt/keyring.gpg" \
"https://archive.ntfy.sh/apt/" \
"stable"
$STD apt install -y ntfy
systemctl enable -q --now ntfy
msg_ok "Installed ntfy"
msg_ok "Setup ntfy"
motd_ssh
customize