Update openvpn-install.sh
This commit is contained in:
parent
2a57e89489
commit
8ccf6d059e
1 changed files with 2 additions and 2 deletions
|
@ -1105,13 +1105,13 @@ function newClient() {
|
|||
# if not, use SUDO_USER
|
||||
if [ "${SUDO_USER}" == "root" ]; then
|
||||
# If running sudo as root
|
||||
homeDir="/root"
|
||||
homeDir="/etc/openvpn/client/"
|
||||
else
|
||||
homeDir="/home/${SUDO_USER}"
|
||||
fi
|
||||
else
|
||||
# if not SUDO_USER, use /root
|
||||
homeDir="/root"
|
||||
homeDir="/etc/openvpn/client"
|
||||
fi
|
||||
|
||||
# Determine if we use tls-auth or tls-crypt
|
||||
|
|
Loading…
Reference in a new issue