aboutsummaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'update.go')
-rw-r--r--update.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/update.go b/update.go
index 246c5d8f..e36dc223 100644
--- a/update.go
+++ b/update.go
@@ -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")