mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
enhance: db init
This commit is contained in:
parent
1a21c8406a
commit
40e8d6c40a
7 changed files with 15 additions and 41 deletions
|
@ -95,13 +95,11 @@ func InitDatabase(ctx context.Context) {
|
|||
skipInstall()
|
||||
}
|
||||
|
||||
if cSettings.AppSettings.JwtSecret != "" {
|
||||
db := cosy.InitDB(sqlite.Open(path.Dir(cSettings.ConfPath), settings.DatabaseSettings))
|
||||
model.Use(db)
|
||||
query.Init(db)
|
||||
db := cosy.InitDB(sqlite.Open(path.Dir(cSettings.ConfPath), settings.DatabaseSettings))
|
||||
model.Use(db)
|
||||
query.Init(db)
|
||||
|
||||
InitAfterDatabase(ctx)
|
||||
}
|
||||
InitAfterDatabase(ctx)
|
||||
}
|
||||
|
||||
func InitNodeSecret() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue