We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3382a56 commit 3fe5cd7Copy full SHA for 3fe5cd7
modules/setting/setting.go
@@ -186,10 +186,10 @@ func loadRunModeFrom(rootCfg ConfigProvider) {
186
187
func loadTempDir(rootCfg ConfigProvider) {
188
rootSec := rootCfg.Section("")
189
- tempDir := rootSec.Key("TEMP_DIR").MustString(filepath.Join(os.TempDir(), "gitea"))
190
- if tempDir != "" {
191
- if err := os.MkdirAll(tempDir, os.ModePerm); err != nil {
192
- log.Fatal("Failed to create temp directory %s: %v", tempDir, err)
+ TempPath = rootSec.Key("TEMP_PATH").MustString(filepath.Join(os.TempDir(), "gitea"))
+ if TempPath != "" {
+ if err := os.MkdirAll(TempPath, os.ModePerm); err != nil {
+ log.Fatal("Failed to create temp directory %s: %v", TempPath, err)
193
}
194
195
0 commit comments