Update openvpn-install.sh

This commit is contained in:
nu11secur1ty 2023-01-17 15:22:33 +02:00 committed by GitHub
parent 2eca321812
commit 6becf7caa9
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