1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-12-23 15:28:55 +00:00

Merge pull request #87 from ValdikSS/euid

Use EUID to check root
This commit is contained in:
Nyr 2015-11-15 19:35:26 +01:00
commit 51998f0d56

View File

@ -8,7 +8,7 @@
# universal as possible. # universal as possible.
if [[ "$USER" != 'root' ]]; then if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root" echo "Sorry, you need to run this as root"
exit 1 exit 1
fi fi