Update index.py

This commit is contained in:
Mr Chen 2024-06-13 21:45:40 +08:00
parent d80216ff31
commit d428d0ff03
1 changed files with 4 additions and 1 deletions

View File

@ -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)