Update install.sh

pull/109/head
midoks 5 years ago
parent f47c979fe0
commit 892014ad3a
  1. 9
      plugins/qbittorrent/install.sh

@ -14,13 +14,14 @@ install_tmp=${rootPath}/tmp/bt_install.pl
Install_mac_ffmpeg() Install_mac_ffmpeg()
{ {
if [ ! -f $serverPath/source/ffmpeg-20180702-3c4af57-macos64-static.zip ];then macVer='ffmpeg-20200721-b5f1e05-macos64-static'
wget -O $serverPath/source/ffmpeg-20180702-3c4af57-macos64-static.zip https://ffmpeg.zeranoe.com/builds/macos64/static/ffmpeg-20180702-3c4af57-macos64-static.zip if [ ! -f $serverPath/source/${macVer}.zip ];then
wget -O $serverPath/source/${macVer}.zip https://ffmpeg.zeranoe.com/builds/macos64/static/${macVer}.zip
fi fi
if [ ! -d $serverPath/lib/ffmpeg ];then if [ ! -d $serverPath/lib/ffmpeg ];then
cd $serverPath/source && tar -xvf $serverPath/source/ffmpeg-20180702-3c4af57-macos64-static.zip cd $serverPath/source && unzip $serverPath/source/${macVer}.zip
mv ffmpeg-20180702-3c4af57-macos64-static $serverPath/lib/ffmpeg mv ${macVer} $serverPath/lib/ffmpeg
fi fi
} }

Loading…
Cancel
Save