mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
Update data directory checking condition.
This commit is contained in:
@@ -19,7 +19,7 @@ object Directory {
|
||||
// Move HOME/gitbucket to HOME/.gitbucket
|
||||
val oldHome = new File(System.getProperty("user.home"), "gitbucket")
|
||||
val newHome = new File(System.getProperty("user.home"), ".gitbucket")
|
||||
if(oldHome.exists && oldHome.isDirectory && new File(oldHome, "data").exists){
|
||||
if(oldHome.exists && oldHome.isDirectory && new File(oldHome, "version").exists){
|
||||
oldHome.renameTo(newHome)
|
||||
}
|
||||
newHome
|
||||
|
||||
Reference in New Issue
Block a user