Skip to content

Commit

Permalink
Check user privilege - change for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
alloynetworks committed Jul 29, 2019
1 parent e5f3a9a commit 17dbf03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Builds/containers/shared/update-rippled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# auto-update script for rippled daemon

# Check for sudo/root permissions
if [ `id -u` -ne 0 ]; then
if [[ $(id -u) -ne 0 ]] ; then
echo "This update script must be run as root or sudo"
exit 1
fi


LOCKDIR=/tmp/rippleupdate.lock
UPDATELOG=/var/log/rippled/update.log

Expand Down

0 comments on commit 17dbf03

Please sign in to comment.