mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -67,7 +67,7 @@ def checkArgs(data, ck=[]):
|
||||
|
||||
|
||||
def getConf(version):
|
||||
path = getServerDir() + '/php' + version + '/etc/php.ini'
|
||||
path = getServerDir() + '/php' + version + '/php.ini'
|
||||
return path
|
||||
|
||||
|
||||
@@ -202,11 +202,11 @@ def phpFpmWwwReplace(version):
|
||||
|
||||
|
||||
def getFpmConf(version):
|
||||
return getServerDir() + '/' + version + '/etc/php-fpm.d/www.conf'
|
||||
return getServerDir() + '/' + version + '/php-fpm.d/www.conf'
|
||||
|
||||
|
||||
def makePhpIni(version):
|
||||
dst_ini = mw.getServerDir() + '/php/' + version + '/etc/php.ini'
|
||||
dst_ini = mw.getServerDir() + '/php/' + version + '/php.ini'
|
||||
if not os.path.exists(dst_ini):
|
||||
src_ini = getPluginDir() + '/conf/php' + version[0:1] + '.ini'
|
||||
# shutil.copyfile(s_ini, d_ini)
|
||||
|
||||
Reference in New Issue
Block a user