Skip to content

Commit 1ea6b8f

Browse files
authored
Write absolute AppDataPath to app.ini when installing (#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 #25330 and can be backported.
1 parent 1d92d0c commit 1ea6b8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/install/install.go

+1
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)