This commit is contained in:
midoks
2023-09-11 13:12:08 +08:00
parent f7ee3a9aed
commit 0b5299dbe0
3 changed files with 1 additions and 10 deletions
-9
View File
@@ -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')