Skip to content

Commit

Permalink
fixed HZN_MGMT_HUB_CERT_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Jul 6, 2023
1 parent 43cca63 commit 5ad5a77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.6.4",
"version": "0.6.5",
"description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments",
"main": "./build/index.js",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class Utils {
if(key == 'HZN_MGMT_HUB_CERT_PATH') {
const cert = /[^\/]+$/.exec(pEnv.CONFIG_CERT_PATH)
if(cert) {
content += `/var/${key}=${cert[0]}`
content += `${key}=/var/${cert[0]}`
}
} else {
content += `${key}=${pEnv[key]}`
Expand All @@ -160,7 +160,7 @@ export class Utils {
} else if(key == 'HZN_MGMT_HUB_CERT_PATH') {
const cert = /[^\/]+$/.exec(pEnv.CONFIG_CERT_PATH)
if(cert) {
content += `/var/${key}=${cert[0]}`
content += `${key}=/var/${cert[0]}`
}
}
}
Expand Down

0 comments on commit 5ad5a77

Please sign in to comment.