Comments (3)
@clementkng Thx for reminding me that brew shouldn't be run as root. I took your advice on the short term solution and updated the readme to specify that on macos they need to install jq, gettext, and socat before running the script.
I'm interested in what solution you suggest for the longer term to automatically handle the prereqs in deploy-mgmt-hub.sh
. As far as i know there is no way to have script downgrade its effective id to the user before sudo -i
was run. I guess another approach is to not have them run the script with sudo, and then have the script put sudo in front each cmd that needs it, but that is kind of messy and error prone. What are your thoughts?
from devops.
@bmpotter Yeah, I can't think of or find any other way other than the two ways you mentioned. Even looking at the script, I can't really tell where sudo would need to be applied so maybe it's best to leave the script as it is now (one extra command for Mac users isn't too much).
from devops.
@clementkng Ok, then i'll close this issue as complete (i made the readme updates). If you come up with a better way to handle this, you can reopen the issue.
from devops.
Related Issues (20)
- System monitoring edge nodes and services
- Object to note Open Horizon component version compatibility per release HOT 2
- The all-in-one script should provide the user's credentials earlier in the process. HOT 1
- Short term fix for matching Agent and Hub versions for the "all-in-one". HOT 1
- GHA needed to copy Mgmt-Hub documentation to OH Docs HOT 12
- Error: http code 400 from: vaultUnseal HOT 6
- The documentation directory is not showing up! HOT 3
- Generate SBOM information for all Open Horizon components at each release. HOT 2
- HTML formatting errors in docs/readme.md HOT 5
- Move openhorizon-tested-versions.txt to .github repo
- Add new architectures to openhorizon-tested-versions.txt
- Broken link in README.md mgmt-hub/README.md HOT 3
- Hyperlink format is incorrect on All-in-One doc HOT 2
- Fix Mgmt Hub redirect link HOT 2
- deploy-mgmt-hub.sh - Add support for Ubuntu 22.10
- Error running make publish-only: ARCH=amd64 make publish-service-overwrite
- ...
- Encounter Error in ./deploy-mgmt-hub.sh Error: exit code 5 HOT 4
- Create installation instructions for Agent on Windows Subsystem for Linux HOT 1
- Log files are consuming too much disk space. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devops.