Update qBittorrent

This commit is contained in:
tremor021 2025-03-23 21:03:05 +01:00
parent a2b047b2b8
commit e4c6fcc6cf

View File

@ -34,6 +34,7 @@ function update_script() {
mv /.config/qBittorrent $HOME/.config/ mv /.config/qBittorrent $HOME/.config/
$STD apt-get remove --purge -y qbittorrent-nox $STD apt-get remove --purge -y qbittorrent-nox
sed -i 's@ExecStart=/usr/bin/qbittorrent-nox@ExecStart=/opt/qbittorrent/qbittorrent-nox@g' /etc/systemd/system/qbittorrent-nox.service sed -i 's@ExecStart=/usr/bin/qbittorrent-nox@ExecStart=/opt/qbittorrent/qbittorrent-nox@g' /etc/systemd/system/qbittorrent-nox.service
systemctl daemon-reload
fi fi
FULLRELEASE=$(curl -s https://api.github.com/repos/userdocs/qbittorrent-nox-static/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') FULLRELEASE=$(curl -s https://api.github.com/repos/userdocs/qbittorrent-nox-static/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
RELEASE=$(echo $FULLRELEASE | cut -c 9-13) RELEASE=$(echo $FULLRELEASE | cut -c 9-13)