diff --git a/openvpn-install.sh b/openvpn-install.sh index adf7a90..2c90b88 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 fi