Add root/sudo check

Add root/sudo check thanks to @bmullan
This commit is contained in:
Chase Wright 2018-09-01 09:33:32 -05:00 committed by GitHub
parent a43a3c8327
commit 4ae4546d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/bash
# Check if user is root or sudo
if ! [ $(id -u) = 0 ]; then echo "Please run this script as sudo or root"; exit 1 ; fi
# Version number of Guacamole to install
GUACVERSION="0.9.14"