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 <wxiaoguang@gmail.com>
This commit is contained in:
parent
b673edbeaf
commit
ff18c3ba65
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ func SubmitInstall(ctx *context.Context) {
|
||||||
cfg.Section("server").Key("DOMAIN").SetValue(form.Domain)
|
cfg.Section("server").Key("DOMAIN").SetValue(form.Domain)
|
||||||
cfg.Section("server").Key("HTTP_PORT").SetValue(form.HTTPPort)
|
cfg.Section("server").Key("HTTP_PORT").SetValue(form.HTTPPort)
|
||||||
cfg.Section("server").Key("ROOT_URL").SetValue(form.AppURL)
|
cfg.Section("server").Key("ROOT_URL").SetValue(form.AppURL)
|
||||||
|
cfg.Section("server").Key("APP_DATA_PATH").SetValue(setting.AppDataPath)
|
||||||
|
|
||||||
if form.SSHPort == 0 {
|
if form.SSHPort == 0 {
|
||||||
cfg.Section("server").Key("DISABLE_SSH").SetValue("true")
|
cfg.Section("server").Key("DISABLE_SSH").SetValue("true")
|
||||||
|
|
Loading…
Reference in a new issue