Skip to content

Commit

Permalink
Merge pull request #138 from playground/auto-setup
Browse files Browse the repository at this point in the history
Auto setup
  • Loading branch information
playground authored Jan 2, 2025
2 parents 9bd0101 + e0e5486 commit 5b3aa21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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.9.0",
"version": "0.9.1",
"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 @@ -980,8 +980,8 @@ export class Utils {
return this.shell(arg)
}
purgeManagementHub(purge: boolean) {
if(purge && (os.arch() == 'x64' || process.platform == 'darwin')) {
// TODO: uncomment when the script is fixed
if(purge && (os.arch() == 'x64' || process.platform != 'darwin')) {
// TODO: darwin not supported
const arg = `curl -sSL https://raw.githubusercontent.com/open-horizon/devops/master/mgmt-hub/deploy-mgmt-hub.sh --output deploy-mgmt-hub.sh && chmod +x deploy-mgmt-hub.sh && sudo ./deploy-mgmt-hub.sh -PS && sudo rm -rf /tmp/horizon-all-in-1`
return this.shell(arg)
} else {
Expand Down

0 comments on commit 5b3aa21

Please sign in to comment.