mirror of
https://github.com/veops/oneterm.git
synced 2025-10-05 23:37:03 +08:00
feat(backend): Add Node authorization V2 support with auto-migration
This commit is contained in:
@@ -42,9 +42,6 @@ func initDB() {
|
||||
logger.L().Fatal("Failed to drop index", zap.Error(err))
|
||||
}
|
||||
|
||||
acl.MigrateNode()
|
||||
acl.MigrateCommand()
|
||||
|
||||
gsession.InitSessionCleanup()
|
||||
}
|
||||
|
||||
@@ -62,6 +59,9 @@ func initServices() {
|
||||
if err := timeTemplateService.InitializeBuiltInTemplates(ctx); err != nil {
|
||||
logger.L().Error("Failed to initialize built-in time templates", zap.Error(err))
|
||||
}
|
||||
|
||||
acl.MigrateNode()
|
||||
acl.MigrateCommand()
|
||||
}
|
||||
|
||||
func initStorage() error {
|
||||
|
Reference in New Issue
Block a user