Update install.sh

pull/5/head
Mr Chen 6 years ago
parent 669259634a
commit d4742f061b
  1. 3
      plugins/qbittorrent/install.sh

@ -30,6 +30,8 @@ Install_qbittorrent()
if [ ! -f ${QB_DIR}/libtorrent-rasterbar-1.1.9.tar.gz ];then 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 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 fi
if [ ! -f $serverPath/lib/libtorrent ];then
cd ${QB_DIR} && tar -zxf libtorrent-rasterbar-1.1.9.tar.gz cd ${QB_DIR} && tar -zxf libtorrent-rasterbar-1.1.9.tar.gz
cd ${QB_DIR} && cd libtorrent-rasterbar-1.1.9 cd ${QB_DIR} && cd libtorrent-rasterbar-1.1.9
@ -40,6 +42,7 @@ Install_qbittorrent()
#echo "/www/server/lib/libtorrent/lib" > /etc/ld.so.conf.d/libtorrent-x86_64.conf #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 echo "$serverPath/lib/libtorrent/lib" > /etc/ld.so.conf.d/libtorrent-x86_64.conf
ldconfig ldconfig
fi
#export LD_LIBRARY_PATH=/www/server/lib/libtorrent/lib #export LD_LIBRARY_PATH=/www/server/lib/libtorrent/lib
#export CPLUS_INCLUDE_PATH=/www/server/lib/libtorrent/include/ #export CPLUS_INCLUDE_PATH=/www/server/lib/libtorrent/include/
export CPLUS_INCLUDE_PATH=$serverPath/lib/libtorrent/include/ export CPLUS_INCLUDE_PATH=$serverPath/lib/libtorrent/include/

Loading…
Cancel
Save