提交 45d486f2 编写于 作者: K kohsuke

if back up already exists, delete it

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15267 71c3de6d-444a-0410-be80-ed276b4c234a
上级 942120a7
......@@ -384,6 +384,8 @@ public class ZFSInstaller extends AdministrativeMonitor implements Serializable
// move the original directory to the side
File backup = new File(home.getPath()+".backup");
out.println("Moving "+home+" to "+backup);
if(backup.exists())
Util.deleteRecursive(backup);
if(!home.renameTo(backup)) {
out.println("Failed to move your current data "+home+" out of the way");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册