nbweb
V2EX  ›  问与答

求个定时更新 qbittorrent 的脚本

  •  
  •   nbweb · Jul 24, 2021 · 2135 views
    This topic created in 1950 days ago, the information mentioned may be changed or developed.

    在 debian 上安装的是这个: https://github.com/userdocs/qbittorrent-nox-static

    我想每过 10 天定时更新一下二进制文件,自己写了个脚本,感觉不太行。

    systemctl stop qbt
    wget -qO /usr/local/bin/x86_64-qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/latest/download/x86_64-qbittorrent-nox
    chmod 700 /usr/local/bin/x86_64-qbittorrent-nox
    systemctl start qbt
    

    我的想法是:如果检测到有新版本,就下载二进制文件,下载完成后,复制到 /usr/local/bin 目录下面。

    哪位高手帮写一下。

    不胜感谢。

    5 replies  •  2021-07-24 19:26:03 +08:00
    fkmc
    fkmc
    Jul 24, 2021
    1
    我觉得可以用 docker 安装更新
    cest
    cest
    Jul 24, 2021
    2
    这个版本没有 memory leak?
    不然用 repo 上的就行
    apt-get upgrade 成功再 kill 重啓
    skinny
    skinny
    Jul 24, 2021
    3
    github 有 releases api 啊,配合 curl 和 jq 写个脚本就可以了,即便不用 access token,每分钟也可以访问 10 次。
    ferock
    ferock
    Jul 24, 2021 via iPhone
    4
    dockerpull 就完事了
    letitbesqzr
    letitbesqzr
    Jul 24, 2021
    5
    运行在 docker,然后使用 : https://github.com/containrrr/watchtower
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1229 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 17:29 · PVG 01:29 · LAX 09:29 · JFK 12:29
    ♥ Do have faith in what you're doing.