File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -133,12 +133,19 @@ func GlobalInit(ctx context.Context) {
133
133
log .Trace ("AppWorkPath: %s" , setting .AppWorkPath )
134
134
log .Trace ("Custom path: %s" , setting .CustomPath )
135
135
log .Trace ("Log path: %s" , setting .LogRootPath )
136
+ checkRunMode ()
136
137
137
138
// Setup i18n
138
139
InitLocales ()
139
140
140
141
NewServices ()
141
142
143
+ if setting .EnableSQLite3 {
144
+ log .Info ("SQLite3 Supported" )
145
+ } else if setting .Database .UseSQLite3 {
146
+ log .Fatal ("SQLite3 is set in settings but NOT Supported" )
147
+ }
148
+
142
149
if setting .InstallLock {
143
150
highlight .NewContext ()
144
151
external .RegisterParsers ()
@@ -172,10 +179,6 @@ func GlobalInit(ctx context.Context) {
172
179
}
173
180
eventsource .GetManager ().Init ()
174
181
}
175
- if setting .EnableSQLite3 {
176
- log .Info ("SQLite3 Supported" )
177
- }
178
- checkRunMode ()
179
182
180
183
if err := repo_migrations .Init (); err != nil {
181
184
log .Fatal ("Failed to initialize repository migrations: %v" , err )
You can’t perform that action at this time.
0 commit comments