Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check privileges of user #3011

Closed
wants to merge 2 commits into from
Closed

Check privileges of user #3011

wants to merge 2 commits into from

Conversation

alloynetworks
Copy link
Contributor

Check if the script is being run as root or sudo, else exit with message.

Check if the script is being run as root or sudo, else exit with message.
@ripplelabs-jenkins
Copy link
Collaborator

Thank you for your submission. It will be reviewed soon and submitted for processing in CI.

@@ -2,6 +2,13 @@

# auto-update script for rippled daemon

# Check for sudo/root permissions
if [ `id -u` -ne 0 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a nit-pick, but other places here use $(cmd) for subshells, so I guess I would prefer that strictly for consistency (I don't think there is any practical difference in this case, but let me know if I'm wrong...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues. I can change it for consistency.

@ripplelabs-jenkins
Copy link
Collaborator

Thank you for your submission. It will be reviewed soon and submitted for processing in CI.

Copy link
Contributor

@mellery451 mellery451 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - thanks!

@mellery451 mellery451 added the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Jul 29, 2019
@ripplelabs-jenkins
Copy link
Collaborator

ripplelabs-jenkins commented Jul 29, 2019

Jenkins Build Summary

Built from this commit

Built at 20190729 - 21:17:08

Test Results

Build Type Log Result Status
msvc.Debug logfile 1178 cases, 0 failed, t: 577s PASS ✅
msvc.Debug,
NINJA_BUILD=true
logfile 1178 cases, 0 failed, t: 607s PASS ✅
msvc.Debug
-Dunity=OFF
logfile 1177 cases, 0 failed, t: 1106s PASS ✅
msvc.Release logfile 1178 cases, 0 failed, t: 411s PASS ✅
gcc.Release
-Dassert=ON,
MANUAL_TESTS=true
logfile 915 cases, 0 failed, t: 5m0s PASS ✅
gcc.Debug
-Dcoverage=ON,
TARGET=coverage_report,
SKIP_TESTS=true
logfile 1178 cases, 0 failed, t: 16m52s PASS ✅
docs,
TARGET=docs
logfile 1 cases, 0 failed, t: 0m1s PASS ✅
clang.Debug logfile 1178 cases, 0 failed, t: 2m55s PASS ✅
clang.Debug
-Dunity=OFF
logfile 1177 cases, 0 failed, t: 10m56s PASS ✅
gcc.Debug logfile 1178 cases, 0 failed, t: 2m56s PASS ✅
gcc.Debug
-Dunity=OFF
logfile 1177 cases, 0 failed, t: 11m18s PASS ✅
clang.Release
-Dassert=ON
logfile 1178 cases, 0 failed, t: 5m6s PASS ✅
gcc.Release
-Dassert=ON
logfile 1178 cases, 0 failed, t: 4m57s PASS ✅
gcc.Debug
-Dstatic=OFF
logfile 1178 cases, 0 failed, t: 2m55s PASS ✅
gcc.Debug
-Dstatic=OFF -DBUILD_SHARED_LIBS=ON
logfile 1178 cases, 0 failed, t: 2m56s PASS ✅
gcc.Debug,
NINJA_BUILD=true
logfile 1178 cases, 0 failed, t: 2m48s PASS ✅
clang.Debug
-Dunity=OFF -Dsan=address,
PARALLEL_TESTS=false,
DEBUGGER=false
logfile 1177 cases, 0 failed, t: 11m14s PASS ✅
clang.Debug
-Dunity=OFF -Dsan=undefined,
PARALLEL_TESTS=false
logfile 1177 cases, 0 failed, t: 12m35s PASS ✅

@nbougalis nbougalis mentioned this pull request Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants