From d4742f061b96e07d1afd9acefa95d22d28949e11 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 21 Jan 2019 15:07:17 +0800 Subject: [PATCH] Update install.sh --- plugins/qbittorrent/install.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/plugins/qbittorrent/install.sh b/plugins/qbittorrent/install.sh index 008590c4d..37c72f082 100755 --- a/plugins/qbittorrent/install.sh +++ b/plugins/qbittorrent/install.sh @@ -30,16 +30,19 @@ Install_qbittorrent() if [ ! -f ${QB_DIR}/libtorrent-rasterbar-1.1.9.tar.gz ];then wget -O ${QB_DIR}/libtorrent-rasterbar-1.1.9.tar.gz https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_9/libtorrent-rasterbar-1.1.9.tar.gz fi - cd ${QB_DIR} && tar -zxf libtorrent-rasterbar-1.1.9.tar.gz - cd ${QB_DIR} && cd libtorrent-rasterbar-1.1.9 - - #修改为固定端口号 - #sed -i "s/i2p ? 1 : tracker_req().listen_port/8999/" src/http_tracker_connection.cpp - ./configure --prefix=$serverPath/lib/libtorrent CXXFLAGS=-std=c++11 - make && make install - #echo "/www/server/lib/libtorrent/lib" > /etc/ld.so.conf.d/libtorrent-x86_64.conf - echo "$serverPath/lib/libtorrent/lib" > /etc/ld.so.conf.d/libtorrent-x86_64.conf - ldconfig + + if [ ! -f $serverPath/lib/libtorrent ];then + cd ${QB_DIR} && tar -zxf libtorrent-rasterbar-1.1.9.tar.gz + cd ${QB_DIR} && cd libtorrent-rasterbar-1.1.9 + + #修改为固定端口号 + #sed -i "s/i2p ? 1 : tracker_req().listen_port/8999/" src/http_tracker_connection.cpp + ./configure --prefix=$serverPath/lib/libtorrent CXXFLAGS=-std=c++11 + make && make install + #echo "/www/server/lib/libtorrent/lib" > /etc/ld.so.conf.d/libtorrent-x86_64.conf + echo "$serverPath/lib/libtorrent/lib" > /etc/ld.so.conf.d/libtorrent-x86_64.conf + ldconfig + fi #export LD_LIBRARY_PATH=/www/server/lib/libtorrent/lib #export CPLUS_INCLUDE_PATH=/www/server/lib/libtorrent/include/ export CPLUS_INCLUDE_PATH=$serverPath/lib/libtorrent/include/