mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
Set TMPDIR enviroment variable for dump command (#1915)
This commit is contained in:
parent
662b8bc2a2
commit
b1b8c5e9f4
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ func runDump(ctx *cli.Context) error {
|
|||
}
|
||||
log.Printf("Creating tmp work dir: %s", TmpWorkDir)
|
||||
|
||||
// work-around #1103
|
||||
if os.Getenv("TMPDIR") == "" {
|
||||
os.Setenv("TMPDIR", TmpWorkDir)
|
||||
}
|
||||
|
||||
reposDump := path.Join(TmpWorkDir, "gitea-repo.zip")
|
||||
dbDump := path.Join(TmpWorkDir, "gitea-db.sql")
|
||||
|
||||
|
|
Loading…
Reference in a new issue