update
This commit is contained in:
parent
f7ee3a9aed
commit
0b5299dbe0
|
|
@ -110,7 +110,6 @@ tmp/*
|
|||
*.zip
|
||||
logs/*
|
||||
data/*.db
|
||||
data/control.conf
|
||||
data/iplist.txt
|
||||
data/json/index.json
|
||||
data/json/config.json
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ from flask import redirect
|
|||
|
||||
|
||||
def init():
|
||||
initSystemControl()
|
||||
initDB()
|
||||
initDBSshPort()
|
||||
initUserInfo()
|
||||
|
|
@ -146,14 +145,6 @@ def initInitTask():
|
|||
api.createCertCron()
|
||||
|
||||
|
||||
def initSystemControl():
|
||||
path = 'data/default.db'
|
||||
if os.path.exists(path):
|
||||
return False
|
||||
data_ctl = 'data/control.conf'
|
||||
mw.writeFile(data_ctl, '30')
|
||||
|
||||
|
||||
def initUserInfo():
|
||||
|
||||
data = mw.M('users').where('id=?', (1,)).getField('password')
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
30
|
||||
Loading…
Reference in New Issue