Skip to content

Commit b069efd

Browse files
wxiaoguangGiteaBot
authored andcommitted
Write absolute AppDataPath to app.ini when installing (go-gitea#25331)
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 go-gitea#25330 and can be backported.
1 parent b673edb commit b069efd

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)