Update openvpn-install.sh

This commit is contained in:
nu11secur1ty 2023-01-17 15:26:54 +02:00 committed by GitHub
parent 2a57e89489
commit 8ccf6d059e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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