Update openvpn-install.sh
This commit is contained in:
parent
031afd587e
commit
5787c45a03
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ fi
|
||||||
|
|
||||||
newclient () {
|
newclient () {
|
||||||
# Where to write the custom client.ovpn?
|
# 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"
|
homeDir="/home/$1"
|
||||||
elif [ -e /home/${SUDO_USER} ]; then # if not, use SUDO_USER
|
elif [ -e /home/${SUDO_USER} ]; then # if not, use SUDO_USER
|
||||||
homeDir="/home/${SUDO_USER}"
|
homeDir="/home/${SUDO_USER}"
|
||||||
|
|
Loading…
Reference in a new issue