Check for superuser permissions in order to run script.
This commit is contained in:
parent
db3c70e597
commit
d1e66443a4
|
@ -8,6 +8,12 @@
|
|||
# https://github.com/jitsi/jigasi/pull/130
|
||||
#######################################################
|
||||
|
||||
#Check if user is root
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
echo "You need to be root or have sudo privileges!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
clear
|
||||
echo '
|
||||
########################################################################
|
||||
|
|
Loading…
Reference in New Issue