CC-3573: Use posix_geteuid instead of "whoami" to detect who is running PHP script
-done
This commit is contained in:
parent
61c5c839dd
commit
c66f0c783f
12 changed files with 12 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
#-e Causes bash script to exit if any of the installers
|
||||
#return with a non-zero return value.
|
||||
|
||||
if [ `whoami` != 'root' ]; then
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "Please run as root user."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue