From d80216ff312bc3f85332c00d2693b5740632d9ae Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 13 Jun 2024 21:38:36 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 199fc5e73..2a714e48c 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -27,6 +27,9 @@ def getPluginName(): return 'php-apt' +def getAppDir(): + return mw.getServerDir()+'/'+getPluginName() + def getServerDir(): return '/etc/php' @@ -181,13 +184,12 @@ def phpFpmReplace(version): def initReplace(version): makeOpConf(version) - phpFpmWwwReplace(version) - install_ok = getServerDir() + "/" + version + "/install.ok" + install_ok = getAppDir() + "/" + version + "/install.ok" if not os.path.exists(install_ok): phpFpmReplace(version) - + phpini = getConf(version) ssl_crt = mw.getSslCrt()