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

Update openvpn-install.sh

This commit is contained in:
patlol 2017-07-22 19:40:29 +02:00 committed by GitHub
parent 031afd587e
commit 5787c45a03

View File

@ -57,7 +57,7 @@ fi
newclient () {
# Where to write the custom client.ovpn?
if [ -e /home/$1 ]; then # if $1 is a user ID
if [ -e /home/$1 ]; then # if $1 is a user name
homeDir="/home/$1"
elif [ -e /home/${SUDO_USER} ]; then # if not, use SUDO_USER
homeDir="/home/${SUDO_USER}"