Check for superuser permissions in order to run script.

This commit is contained in:
Luis Guzmán 2019-08-09 00:45:51 -05:00
parent db3c70e597
commit d1e66443a4
Signed by: Ark74
GPG Key ID: 35AD8DB3BE2C988C
1 changed files with 6 additions and 0 deletions

View File

@ -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 '
########################################################################