Skip to content

Commit

Permalink
* (Apollon77) Fix broken data directory when using multiple instances,
Browse files Browse the repository at this point in the history
…fixes #366
  • Loading branch information
Apollon77 committed Mar 24, 2023
1 parent 86578ec commit 84ad1ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ In the adapter/instance configuration you can adjust the maximum RAM/Heap for th
-->

## Changelog

### __WORK IN PROGRESS__
* (Apollon77) Fix broken data directory when using multiple instances

### 4.0.1 (2023-03-22)
* (Apollon77) Prepare for js-controller 5.0

Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function installLibraries(callback) {
if (adapter.instance === 0) {
userDataDir = path.join(utils.getAbsoluteDefaultDataDir(),'node-red') + path.sep;
} else {
userDataDir += path.join(utils.getAbsoluteDefaultDataDir(),`node-red.${adapter.instance}`) + path.sep;
userDataDir = path.join(utils.getAbsoluteDefaultDataDir(),`node-red.${adapter.instance}`) + path.sep;
}

if (adapter.common && adapter.common.npmLibs && !adapter.config.palletmanagerEnabled) {
Expand Down

0 comments on commit 84ad1ce

Please sign in to comment.