Update ntfy.sh
This commit is contained in:
parent
11d8da538b
commit
2e003c2956
18
ct/ntfy.sh
18
ct/ntfy.sh
@ -27,6 +27,24 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
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"
|
msg_info "Updating $APP LXC"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt -y upgrade
|
$STD apt -y upgrade
|
||||||
|
Loading…
x
Reference in New Issue
Block a user