瀏覽代碼

Update install.sh

MoeClub 3 年之前
父節點
當前提交
20f4fce0cf
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      qBittorrent/install.sh

+ 6 - 4
qBittorrent/install.sh

@@ -5,6 +5,8 @@ case `uname -m` in aarch64|arm64) ARCH="arm64";; x86_64|amd64) ARCH="amd64";; *)
 
 systemctl stop qBittorrent.service >/dev/null 2>&1
 systemctl disable qBittorrent.service >/dev/null 2>&1
+systemctl stop qb.service >/dev/null 2>&1
+systemctl disable qb.service >/dev/null 2>&1
 rm -rf /usr/bin/qbittorrent
 
 URL="https://github.com/MoeClub/Note/raw/master/qBittorrent"
@@ -17,12 +19,12 @@ chmod 777 /usr/bin/qbittorrent
 mkdir -p /home/qBittorrent/config
 
 wget --no-check-certificate -4 -qO- "${URL}/qBittorrent.conf" >/home/qBittorrent/config/qBittorrent.conf
-wget --no-check-certificate -4 -qO- "${URL}/qBittorrent.service" >/etc/systemd/system/qBittorrent.service
+wget --no-check-certificate -4 -qO- "${URL}/qBittorrent.service" >/etc/systemd/system/qb.service
 
 systemctl daemon-reload >/dev/null 2>&1
-systemctl enable qBittorrent.service >/dev/null 2>&1
-systemctl start qBittorrent.service >/dev/null 2>&1
-systemctl status qBittorrent.service 
+systemctl enable qb.service >/dev/null 2>&1
+systemctl start qb.service >/dev/null 2>&1
+systemctl status qb.service