Skip to content

Commit

Permalink
use both CONFIG_CERT_PATH and HZN_MGMT_HUB_CERT_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Apr 21, 2023
1 parent 83e6027 commit ba02d28
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion build/common/src/interface/hzn-model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export declare const HorizonTemplate: {
HZN_AGENT_PORT: string;
};
export declare const HorizonKeyMap: {
HZN_MGMT_HUB_CERT_PATH: string;
HZN_CUSTOM_NODE_ID: string;
DEFAULT_ORG: string;
};
Expand Down
2 changes: 1 addition & 1 deletion build/common/src/interface/hzn-model.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/interface/hzn-model.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/utils.js.map

Large diffs are not rendered by default.

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.10",
"version": "0.5.11",
"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
2 changes: 1 addition & 1 deletion src/common/src/interface/hzn-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const HorizonTemplate = {
"HZN_AGENT_PORT": ""
}
export const HorizonKeyMap = {
"HZN_MGMT_HUB_CERT_PATH": "CONFIG_CERT_PATH",
//"HZN_MGMT_HUB_CERT_PATH": "CONFIG_CERT_PATH",
"HZN_CUSTOM_NODE_ID": 'HZN_DEVICE_ID',
"DEFAULT_ORG": "HZN_ORG_ID"
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class Utils {
this.copyFile(`sudo mv ${process.cwd()}/horizon /var`).then(() => {
const folders = configJson.folders;
if(existsSync(pEnv.CONFIG_CERT_PATH) && folders) {
this.copyFile(`sudo cp ${pEnv.CONFIG_CERT_PATH} /var`).then(() => {
this.copyFile(`sudo cp ${pEnv.CONFIG_CERT_PATH} /var/agent-install.crt`).then(() => {
let arg = ''
folders.forEach((folder) => {
if(arg.length > 0) {
Expand Down

0 comments on commit ba02d28

Please sign in to comment.