From 64536145bed984abbdd922ad1026d5a9334a6e2f Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 18 Jun 2022 22:41:43 +0800 Subject: [PATCH] Update index.py --- plugins/php/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/php/index.py b/plugins/php/index.py index 07a32a82c..82165102b 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -302,6 +302,8 @@ def initdInstall(version): return "Apple Computer does not support" mw.execShell('systemctl enable php' + version) + if data[0] == '': + return 'fail' return 'ok' @@ -310,6 +312,8 @@ def initdUinstall(version): return "Apple Computer does not support" mw.execShell('systemctl disable php' + version) + if data[0] == '': + return 'fail' return 'ok'