Skip to content

Commit

Permalink
Warn if the update script is not executed as root
Browse files Browse the repository at this point in the history
  • Loading branch information
alloynetworks authored and nbougalis committed Aug 5, 2019
1 parent 4326940 commit 013545e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Builds/containers/shared/update-rippled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# auto-update script for rippled daemon

# Check for sudo/root permissions
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 013545e

Please sign in to comment.