mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-09 08:10:05 +01:00
Update openvpn-install.sh
This commit is contained in:
parent
2eca321812
commit
6becf7caa9
@ -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 New Issue
Block a user