From 0688b9f1946a7a677a368e149a877ccf45dad545 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 18 Jun 2022 22:44:41 +0800 Subject: [PATCH] Update index.py --- plugins/php/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php/index.py b/plugins/php/index.py index 82165102b..8e78706a6 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -301,7 +301,7 @@ def initdInstall(version): if mw.isAppleSystem(): return "Apple Computer does not support" - mw.execShell('systemctl enable php' + version) + data = mw.execShell('systemctl enable php' + version) if data[0] == '': return 'fail' return 'ok' @@ -311,7 +311,7 @@ def initdUinstall(version): if mw.isAppleSystem(): return "Apple Computer does not support" - mw.execShell('systemctl disable php' + version) + data = mw.execShell('systemctl disable php' + version) if data[0] == '': return 'fail' return 'ok'