forked from switnet/quick-jibri-installer
Actually require to run with admin rights.
This commit is contained in:
parent
7d162f8ade
commit
3acc41dc7f
|
@ -19,10 +19,9 @@ done
|
|||
}
|
||||
|
||||
# Check if user is root
|
||||
if [ $(id -u) = 0 ]; then
|
||||
echo "Please don't run with root or sudo privileges!
|
||||
> We'll request them when necessary."
|
||||
exit 1
|
||||
if [ $UID != 0 ]; then
|
||||
echo You need to run this script as root or sudo rights!
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
|
|
Loading…
Reference in New Issue