mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-24 05:56:08 +03:00
Use EUID to check root
This commit is contained in:
parent
d32416561b
commit
2574097eb4
@ -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
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user