V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
nbweb
V2EX  ›  问与答

求个定时更新 qbittorrent 的脚本

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