mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge 8aa65e77619bb31128b3fd6cc6f6d6a7e36d69e6 into bb01f26f068b8e083e35fdf19dc9b36f8cf67068
This commit is contained in:
commit
04214685f4
@ -85,7 +85,10 @@ function init(_settings, _runtime) {
|
||||
var ffBase = fspath.basename(flowsFullPath,ffExt);
|
||||
|
||||
flowsFileBackup = getBackupFilename(flowsFullPath);
|
||||
credentialsFile = fspath.join(settings.userDir,ffBase+"_cred"+ffExt);
|
||||
credentialsFile = fspath.join(settings.userDir,ffBase+"_cred"+ffExt); // if creds file exists in "old" location userdir then use it
|
||||
if (!fs.existsSync(credentialsFile)) { // if not then locate it next to flows file in flows dir
|
||||
credentialsFile = fspath.join(fspath.dirname(flowsFullPath), ffBase+"_cred"+ffExt);
|
||||
}
|
||||
credentialsFileBackup = getBackupFilename(credentialsFile)
|
||||
|
||||
var setupProjectsPromise;
|
||||
|
Loading…
x
Reference in New Issue
Block a user