mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-06-18 12:04:12 -04:00
check for root
This commit is contained in:
parent
99e04ffa08
commit
0ff690a2f0
@ -1353,6 +1353,16 @@ function echo_need {
|
|||||||
MESSAGE="Evaluating Arguments"
|
MESSAGE="Evaluating Arguments"
|
||||||
echo_stat
|
echo_stat
|
||||||
|
|
||||||
|
if [ ! "$EUID" -ne 0 ]
|
||||||
|
then
|
||||||
|
echo_fail
|
||||||
|
|
||||||
|
MESSAGE="Root User Detected"
|
||||||
|
echo_warn
|
||||||
|
|
||||||
|
exit_nochange
|
||||||
|
fi
|
||||||
|
|
||||||
case $# in
|
case $# in
|
||||||
|
|
||||||
0)
|
0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user