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 8011926 commit 37840dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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.5.13",
"version": "0.6.0",
"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
5 changes: 4 additions & 1 deletion src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ export class Utils {
content += `${key}=${pEnv.HZN_DEVICE_ID}`
}
if(key == 'HZN_MGMT_HUB_CERT_PATH') {
content += `${key}=${pEnv.CONFIG_CERT_PATH}`
const cert = /[^\/]+$/.exec(pEnv.CONFIG_CERT_PATH)
if(cert) {
content += `/var/${key}=${cert[0]}`
}
}
}
})
Expand Down

0 comments on commit 37840dd

Please sign in to comment.