mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
8cc9b6d69b
...
1d4d8c16bc
Author | SHA1 | Date |
---|---|---|
Håvard Gjøby Thom | 1d4d8c16bc | |
Håvard Thom | dee42414b9 | |
tteckster | 409936a9fc |
|
@ -1,3 +1,10 @@
|
||||||
|
<div style="border: 2px solid #d1d5db; padding: 20px; border-radius: 8px; background-color: #f9fafb;">
|
||||||
|
<h2 align="center">Proxmox VE Helper-Scripts Project Update</h2>
|
||||||
|
<p>Dear Community,</p>
|
||||||
|
<p>I wanted to share a personal update. I’ve recently transitioned into hospice care and, as a result, will be slowing down the development of this project. While I’m grateful for the progress we’ve made together, I recognize that I’ll be taking a step back for some rest and reflection during this time.</p>
|
||||||
|
<p>Thank you for your continued support, encouragement, and understanding. Your dedication to the community and this project means the world to me, and I am grateful for each of you.</p>
|
||||||
|
<p>Warm regards,<br>tteck/tteckster</p>
|
||||||
|
</div>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<img src="https://raw.githubusercontent.com/tteck/Proxmox/main/misc/images/logo.png" height="100px" />
|
<img src="https://raw.githubusercontent.com/tteck/Proxmox/main/misc/images/logo.png" height="100px" />
|
||||||
|
|
25
ct/nzbget.sh
25
ct/nzbget.sh
|
@ -56,27 +56,10 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -f /lib/systemd/system/nzbget.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -f /lib/systemd/system/nzbget.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
|
msg_info "Updating $APP LXC"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/nzbgetcom/nzbget/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
apt-get update &>/dev/null
|
||||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
apt-get -y upgrade &>/dev/null
|
||||||
msg_info "Stopping ${APP}"
|
msg_ok "Updated $APP LXC"
|
||||||
systemctl stop nzbget
|
|
||||||
msg_ok "Stopped ${APP}"
|
|
||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
|
||||||
wget -q https://github.com/nzbgetcom/nzbget/releases/download/v$RELEASE/nzbget-$RELEASE-amd64.deb
|
|
||||||
dpkg -i nzbget-${RELEASE}-amd64.deb &>/dev/null
|
|
||||||
rm -rf nzbget-${RELEASE}-amd64.deb
|
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
|
||||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
|
||||||
|
|
||||||
msg_info "Starting ${APP}"
|
|
||||||
systemctl start nzbget
|
|
||||||
msg_ok "Started ${APP}"
|
|
||||||
msg_ok "Updated Successfully"
|
|
||||||
else
|
|
||||||
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
|
||||||
fi
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y curl
|
||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
|
$STD apt-get install -y gpg
|
||||||
$STD apt-get install -y par2
|
$STD apt-get install -y par2
|
||||||
$STD apt-get install -y p7zip-full
|
|
||||||
cat <<EOF >/etc/apt/sources.list.d/non-free.list
|
cat <<EOF >/etc/apt/sources.list.d/non-free.list
|
||||||
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
EOF
|
EOF
|
||||||
|
@ -29,13 +29,11 @@ rm /etc/apt/sources.list.d/non-free.list
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing NZBGet"
|
msg_info "Installing NZBGet"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/nzbgetcom/nzbget/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
mkdir -p /etc/apt/keyrings
|
||||||
wget -q https://github.com/nzbgetcom/nzbget/releases/download/v$RELEASE/nzbget-$RELEASE-amd64.deb
|
curl -fsSL https://nzbgetcom.github.io/nzbgetcom.asc | gpg --dearmor -o /etc/apt/keyrings/nzbgetcom.gpg
|
||||||
$STD dpkg -i nzbget-${RELEASE}-amd64.deb
|
echo "deb [signed-by=/etc/apt/keyrings/nzbgetcom.gpg] https://nzbgetcom.github.io/deb stable main" >/etc/apt/sources.list.d/nzbgetcom.list
|
||||||
sed -i 's/SevenZipCmd=7zz/SevenZipCmd=7z/g' /var/lib/nzbget/nzbget.conf
|
$STD apt-get update
|
||||||
systemctl restart nzbget
|
$STD apt-get install -y nzbget
|
||||||
rm -rf nzbget-${RELEASE}-amd64.deb
|
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
|
||||||
msg_ok "Installed NZBGet"
|
msg_ok "Installed NZBGet"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
Loading…
Reference in New Issue