mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-03 03:55:58 +01:00
(refs #1182)Remove code which is deleting the temporary directory on bootstrap
This commit is contained in:
@@ -43,10 +43,9 @@ public class JettyLauncher {
|
|||||||
WebAppContext context = new WebAppContext();
|
WebAppContext context = new WebAppContext();
|
||||||
|
|
||||||
File tmpDir = new File(getGitBucketHome(), "tmp");
|
File tmpDir = new File(getGitBucketHome(), "tmp");
|
||||||
if(tmpDir.exists()){
|
if(!tmpDir.exists()){
|
||||||
deleteDirectory(tmpDir);
|
|
||||||
}
|
|
||||||
tmpDir.mkdirs();
|
tmpDir.mkdirs();
|
||||||
|
}
|
||||||
context.setTempDirectory(tmpDir);
|
context.setTempDirectory(tmpDir);
|
||||||
|
|
||||||
ProtectionDomain domain = JettyLauncher.class.getProtectionDomain();
|
ProtectionDomain domain = JettyLauncher.class.getProtectionDomain();
|
||||||
|
|||||||
Reference in New Issue
Block a user