From 02beb55896b7bfa46be56a576aec4c51337583a8 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 4 Aug 2020 19:24:01 +0800 Subject: [PATCH] Update qbittorrent.tpl --- plugins/qbittorrent/init.d/qbittorrent.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/qbittorrent/init.d/qbittorrent.tpl b/plugins/qbittorrent/init.d/qbittorrent.tpl index c17ae5d85..6a999f17f 100755 --- a/plugins/qbittorrent/init.d/qbittorrent.tpl +++ b/plugins/qbittorrent/init.d/qbittorrent.tpl @@ -15,7 +15,7 @@ qb_start(){ isStartFF=`ps -ef | grep 'ffmpeg' | grep -v grep |awk '{print $2}'` - if [ "$isStartFF" == '' ];then + if [ "$isStartFF" != '' ];then echo "qbittorrent ffmpeg is running! can\`t start!!!" return 1 fi @@ -27,7 +27,7 @@ qb_start(){ qb_stop(){ isStartFF=`ps -ef | grep 'ffmpeg' | grep -v grep |awk '{print $2}'` - if [ "$isStartFF" == '' ];then + if [ "$isStartFF" != '' ];then echo "qbittorrent ffmpeg is running! can\`t stop!!!" return 1 fi