Update index.py

This commit is contained in:
midoks
2020-07-12 23:54:01 +08:00
parent 03e2b95305
commit bd6cb8f029
+9 -1
View File
@@ -151,7 +151,15 @@ def setPhpVer():
cacheFile = getServerDir() + '/php.pl'
mw.writeFile(cacheFile, args['phpver'])
restart()
file_tpl = getPluginDir() + '/conf/phpmyadmin.conf'
file_run = getConf()
centent = mw.readFile(file_tpl)
centent = contentReplace(centent)
mw.writeFile(file_run, centent)
mw.restartWeb()
return 'ok'