From 180f765abbbf6f43c7b995eee6d60bbbc96aca63 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 19 Jun 2022 00:08:24 +0800 Subject: [PATCH] Update index.py --- plugins/php/index.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/php/index.py b/plugins/php/index.py index 8e78706a6..07a32a82c 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -301,9 +301,7 @@ def initdInstall(version): if mw.isAppleSystem(): return "Apple Computer does not support" - data = mw.execShell('systemctl enable php' + version) - if data[0] == '': - return 'fail' + mw.execShell('systemctl enable php' + version) return 'ok' @@ -311,9 +309,7 @@ def initdUinstall(version): if mw.isAppleSystem(): return "Apple Computer does not support" - data = mw.execShell('systemctl disable php' + version) - if data[0] == '': - return 'fail' + mw.execShell('systemctl disable php' + version) return 'ok'