mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Set TMPDIR enviroment variable for dump command (#1915)
This commit is contained in:
		
				
					committed by
					
						 Bo-Yi Wu
						Bo-Yi Wu
					
				
			
			
				
	
			
			
			
						parent
						
							662b8bc2a2
						
					
				
				
					commit
					b1b8c5e9f4
				
			| @@ -74,6 +74,11 @@ func runDump(ctx *cli.Context) error { | |||||||
| 	} | 	} | ||||||
| 	log.Printf("Creating tmp work dir: %s", TmpWorkDir) | 	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") | 	reposDump := path.Join(TmpWorkDir, "gitea-repo.zip") | ||||||
| 	dbDump := path.Join(TmpWorkDir, "gitea-db.sql") | 	dbDump := path.Join(TmpWorkDir, "gitea-db.sql") | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user