From e43970652e1e520fca97445d69bb529b756970d5 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 6 Dec 2019 16:00:33 +0800 Subject: [PATCH] Update index.py --- plugins/walle/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/walle/index.py b/plugins/walle/index.py index 63d0b266e..d2beba03e 100755 --- a/plugins/walle/index.py +++ b/plugins/walle/index.py @@ -117,10 +117,10 @@ def stop(): def restart(): file = initDreplace() - data = runShell(file + ' restart') - if data[1] == '': - return 'ok' - return 'fail' + cmd = file + ' restart' + data = subprocess.Popen( + cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + return 'ok' def reload():