mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-22 21:50:05 +00:00
Compare commits
1 Commits
9aa5c4402f
...
5714ce3512
Author | SHA1 | Date | |
---|---|---|---|
|
5714ce3512 |
8
index.js
8
index.js
@ -34,10 +34,10 @@ function initialSetup(firstTime) {
|
|||||||
if (!firstTime) {
|
if (!firstTime) {
|
||||||
// Migration from pre-1.6
|
// Migration from pre-1.6
|
||||||
// Back everything up, just in case
|
// Back everything up, just in case
|
||||||
if (fs.existsSync(configPath)) fs.copySync(configPath, configPath + ".bak");
|
fs.copySync(configPath, configPath + ".bak");
|
||||||
if (fs.existsSync(serversPath)) fs.copySync(serversPath, serversPath + ".bak");
|
fs.copySync(serversPath, serversPath + ".bak");
|
||||||
if (fs.existsSync(versionsPath)) fs.copySync(versionsPath, versionsPath + ".bak");
|
fs.copySync(versionsPath, versionsPath + ".bak");
|
||||||
if (fs.existsSync(hashPath)) fs.copySync(hashPath, hashPath + ".bak");
|
fs.copySync(hashPath, hashPath + ".bak");
|
||||||
} else {
|
} else {
|
||||||
// First-time setup
|
// First-time setup
|
||||||
// Copy default servers
|
// Copy default servers
|
||||||
|
Loading…
Reference in New Issue
Block a user