Skip to content

Commit ff18c3b

Browse files
GiteaBotwxiaoguang
andauthored
Write absolute AppDataPath to app.ini when installing (#25331) (#25347)
Backport #25331 by @wxiaoguang If the APP_DATA_PATH isn't written into the config when installing, then its value is uncertain because some Gitea command doesn't run with correct WorkPath. This is a quick fix for #25330 and can be backported. Co-authored-by: wxiaoguang <[email protected]>
1 parent b673edb commit ff18c3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/install/install.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ func SubmitInstall(ctx *context.Context) {
393393
cfg.Section("server").Key("DOMAIN").SetValue(form.Domain)
394394
cfg.Section("server").Key("HTTP_PORT").SetValue(form.HTTPPort)
395395
cfg.Section("server").Key("ROOT_URL").SetValue(form.AppURL)
396+
cfg.Section("server").Key("APP_DATA_PATH").SetValue(setting.AppDataPath)
396397

397398
if form.SSHPort == 0 {
398399
cfg.Section("server").Key("DISABLE_SSH").SetValue("true")

0 commit comments

Comments
 (0)