mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 16:57:56 +00:00
Warn if the update script is not executed as root
This commit is contained in:
committed by
Nik Bougalis
parent
1942fee581
commit
45c1c38993
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
# auto-update script for rippled daemon
|
# 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
|
LOCKDIR=/tmp/rippleupdate.lock
|
||||||
UPDATELOG=/var/log/rippled/update.log
|
UPDATELOG=/var/log/rippled/update.log
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user