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