diff --git a/openvpn-install.sh b/openvpn-install.sh index 68eb041..e4d9667 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -8,7 +8,7 @@ # universal as possible. -if [[ "$USER" != 'root' ]]; then +if [[ "$EUID" -ne 0 ]]; then echo "Sorry, you need to run this as root" exit 1 fi