From e27d14d5fa208b7da91dff82b25538e4239dab7d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 21 Jan 2019 15:13:35 +0800 Subject: [PATCH] Update install.sh --- plugins/qbittorrent/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/qbittorrent/install.sh b/plugins/qbittorrent/install.sh index 37c72f082..857150f04 100755 --- a/plugins/qbittorrent/install.sh +++ b/plugins/qbittorrent/install.sh @@ -53,8 +53,11 @@ Install_qbittorrent() wget -O ${QB_DIR}/qbittorrent-4.1.5.tar.gz https://github.com/qbittorrent/qBittorrent/archive/release-4.1.5.tar.gz fi - cd ${QB_DIR} && tar -zxvf qbittorrent-4.1.5.tar.gz && \ - ./configure --prefix=$serverPath/qbittorrent --disable-gui && make && make install + if [ ! -f ${QB_DIR}/qBittorrent-release-4.1.5 ];then + cd ${QB_DIR} && tar -zxvf qbittorrent-4.1.5.tar.gz + fi + + cd ${QB_DIR}/qBittorrent-release-4.1.5 && ./configure --prefix=$serverPath/qbittorrent --disable-gui && make && make install echo '4.1.5' > $serverPath/qbittorrent/version.pl echo '安装完成' > $install_tmp