From d428d0ff034265fd4ae543b85d7815da0bac436f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 13 Jun 2024 21:45:40 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 2a714e48c..4dae1c3b8 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -23,6 +23,9 @@ if mw.isAppleSystem(): app_debug = True +def localVersion(v): + return v[0:1]+v[2:3] + def getPluginName(): return 'php-apt' @@ -186,7 +189,7 @@ def initReplace(version): makeOpConf(version) phpFpmWwwReplace(version) - install_ok = getAppDir() + "/" + version + "/install.ok" + install_ok = getAppDir() + "/" + localVersion(version) + "/install.ok" if not os.path.exists(install_ok): phpFpmReplace(version)