Update openvpn-install.sh

This commit is contained in:
patlol 2017-07-22 21:08:06 +02:00 committed by GitHub
parent 3c5c87b031
commit 58a5282e17
1 changed files with 1 additions and 1 deletions

View File

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