Skip to content

Commit

Permalink
(simatec) Fix redis Password
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Nov 20, 2023
1 parent 87e706d commit dd53a60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ When the adapter crashes or another Code error happens, this error message that
* (simatec) Fix CIFS Password
* (simatec) Fix mySql Password
* (simatec) Fix pgSql Password
* (simatec) Fix redis Password

### 2.9.3 (2023-11-11)
* (simatec) Fix Port for Filerserver
Expand Down
7 changes: 7 additions & 0 deletions lib/scripts/32-redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ async function command(options, log, callback) {
}
});
} else if (options.redisType == 'remote') {

if ((options.pass.startsWith(`"`) && options.pass.endsWith(`"`)) || (options.pass.startsWith(`'`) && options.pass.endsWith(`'`))) {
options.pass = options.pass;
} else {
options.pass = `"${options.pass}"`;
}

const child_process = require('child_process');

try {
Expand Down

0 comments on commit dd53a60

Please sign in to comment.