From 892014ad3a9b91d60a3cba3ca7460325b158db0c Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 22 Jul 2020 17:49:06 +0800 Subject: [PATCH] Update install.sh --- plugins/qbittorrent/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/qbittorrent/install.sh b/plugins/qbittorrent/install.sh index 2963584d8..d7b0d0dca 100755 --- a/plugins/qbittorrent/install.sh +++ b/plugins/qbittorrent/install.sh @@ -14,13 +14,14 @@ install_tmp=${rootPath}/tmp/bt_install.pl Install_mac_ffmpeg() { - if [ ! -f $serverPath/source/ffmpeg-20180702-3c4af57-macos64-static.zip ];then - wget -O $serverPath/source/ffmpeg-20180702-3c4af57-macos64-static.zip https://ffmpeg.zeranoe.com/builds/macos64/static/ffmpeg-20180702-3c4af57-macos64-static.zip + macVer='ffmpeg-20200721-b5f1e05-macos64-static' + if [ ! -f $serverPath/source/${macVer}.zip ];then + wget -O $serverPath/source/${macVer}.zip https://ffmpeg.zeranoe.com/builds/macos64/static/${macVer}.zip fi if [ ! -d $serverPath/lib/ffmpeg ];then - cd $serverPath/source && tar -xvf $serverPath/source/ffmpeg-20180702-3c4af57-macos64-static.zip - mv ffmpeg-20180702-3c4af57-macos64-static $serverPath/lib/ffmpeg + cd $serverPath/source && unzip $serverPath/source/${macVer}.zip + mv ${macVer} $serverPath/lib/ffmpeg fi }