mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -147,7 +147,6 @@
|
||||
<value name="OSTYPE">$OSTYPE</value>
|
||||
<value name="MACHTYPE">$MACHTYPE</value>
|
||||
<value name="MALLOC_CHECK_">2</value>
|
||||
<value name="auto_prepend_file">/www/server/php/app_start.php</value>
|
||||
</value>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -189,7 +189,12 @@ def makePhpIni(version):
|
||||
d_ini = mw.getServerDir() + '/php/' + version + '/etc/php.ini'
|
||||
if not os.path.exists(d_ini):
|
||||
s_ini = getPluginDir() + '/conf/php' + version[0:1] + '.ini'
|
||||
shutil.copyfile(s_ini, d_ini)
|
||||
# shutil.copyfile(s_ini, d_ini)
|
||||
content = mw.readFile(d_ini)
|
||||
if version == '52':
|
||||
content.replace(
|
||||
'[PHP]', "[PHP]\nauto_prepend_file=\"/www/server/php/app_start.php\"")
|
||||
mw.writeFile(s_ini, content)
|
||||
|
||||
|
||||
def initReplace(version):
|
||||
|
||||
Reference in New Issue
Block a user