mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -175,6 +175,19 @@ def initReplace(version):
|
||||
makeOpenrestyConf(version)
|
||||
phpFpmWwwReplace(version)
|
||||
|
||||
install_ok = getServerDir() + "/" + version + "/install.ok"
|
||||
if not os.path.exists(install_ok):
|
||||
phpini = getConf(version)
|
||||
ssl_crt = mw.getSslCrt()
|
||||
|
||||
cmd_openssl = "sed -i \"s#;openssl.cafile=#openssl.cafile=${crtPath}#\" " + \
|
||||
ssl_crt + "/etc/php.ini"
|
||||
mw.execShell(cmd_openssl)
|
||||
cmd_curl = "sed -i \"s#;curl.cainfo =#curl.cainfo=${crtPath}#\" " + \
|
||||
ssl_crt + "/etc/php.ini"
|
||||
mw.execShell(cmd_curl)
|
||||
mw.writeFile(install_ok, 'ok')
|
||||
|
||||
# systemd
|
||||
# mw.execShell('systemctl daemon-reload')
|
||||
return 'ok'
|
||||
|
||||
Reference in New Issue
Block a user