mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 22:15:51 +01:00
Update data directory checking condition.
This commit is contained in:
@@ -19,7 +19,7 @@ object Directory {
|
|||||||
// Move HOME/gitbucket to HOME/.gitbucket
|
// Move HOME/gitbucket to HOME/.gitbucket
|
||||||
val oldHome = new File(System.getProperty("user.home"), "gitbucket")
|
val oldHome = new File(System.getProperty("user.home"), "gitbucket")
|
||||||
val newHome = 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)
|
oldHome.renameTo(newHome)
|
||||||
}
|
}
|
||||||
newHome
|
newHome
|
||||||
|
|||||||
Reference in New Issue
Block a user