mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -72,7 +72,7 @@ def getSqlFile():
|
||||
|
||||
|
||||
def getDbConf():
|
||||
file = getServerDir() + "/workers/db.cfg"
|
||||
file = getServerDir() + "/db.cfg"
|
||||
return file
|
||||
|
||||
|
||||
@@ -88,6 +88,12 @@ def initDreplace():
|
||||
sdir = getPluginDir() + '/workers'
|
||||
public.execShell('cp -rf ' + sdir + ' ' + getServerDir())
|
||||
|
||||
cfg = getServerDir() + '/db.cfg'
|
||||
if not os.path.exists(cfg):
|
||||
cfg_tpl = getPluginDir() + '/workers/db.cfg'
|
||||
content = public.readFile(cfg_tpl)
|
||||
public.writeFile(cfg, content)
|
||||
|
||||
file_tpl = getInitDTpl()
|
||||
service_path = os.path.dirname(os.getcwd())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user