mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 01:45:22 +02:00
Fix bug work with sqlite3
This commit is contained in:
parent
d0e6a4c25a
commit
2a0066420a
8 changed files with 31 additions and 12 deletions
|
@ -32,6 +32,12 @@ gogs serv provide access auth for repositories`,
|
|||
func runUpdate(c *cli.Context) {
|
||||
base.NewConfigContext()
|
||||
models.LoadModelsConfig()
|
||||
|
||||
if models.UseSQLite3 {
|
||||
execDir, _ := base.ExecDir()
|
||||
os.Chdir(execDir)
|
||||
}
|
||||
|
||||
models.SetEngine()
|
||||
|
||||
w, _ := os.Create("update.log")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue