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

1
.gitignore vendored
View File

@ -110,7 +110,6 @@ tmp/*
*.zip
logs/*
data/*.db
data/control.conf
data/iplist.txt
data/json/index.json
data/json/config.json

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')

1
data/control.conf Normal file
View File

@ -0,0 +1 @@
30