mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-01-09 16:20:04 +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 not, use SUDO_USER
|
||||||
if [ "${SUDO_USER}" == "root" ]; then
|
if [ "${SUDO_USER}" == "root" ]; then
|
||||||
# If running sudo as root
|
# If running sudo as root
|
||||||
homeDir="/root"
|
homeDir="/etc/openvpn/client/"
|
||||||
else
|
else
|
||||||
homeDir="/home/${SUDO_USER}"
|
homeDir="/home/${SUDO_USER}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# if not SUDO_USER, use /root
|
# if not SUDO_USER, use /root
|
||||||
homeDir="/root"
|
homeDir="/etc/openvpn/client"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine if we use tls-auth or tls-crypt
|
# Determine if we use tls-auth or tls-crypt
|
||||||
|
Loading…
Reference in New Issue
Block a user