Change Client profiles save folder to /opt/ovpn

This commit is contained in:
Swamy Goundar 2020-03-22 17:37:09 -07:00
parent 0dc5107d24
commit 09a912337d
2 changed files with 4 additions and 3 deletions

1
Read2.txt Normal file
View file

@ -0,0 +1 @@
This is a Test

View file

@ -1031,11 +1031,11 @@ function newClient () {
# Home directory of the user, where the client configuration (.ovpn) will be written
if [ -e "/home/$CLIENT" ]; then # if $1 is a user name
homeDir="/home/$CLIENT"
homeDir="/opt/ovpn"
elif [ "${SUDO_USER}" ]; then # if not, use SUDO_USER
homeDir="/home/${SUDO_USER}"
homeDir="/opt/ovpn"
else # if not SUDO_USER, use /root
homeDir="/root"
homeDir="/opt/ovpn"
fi
# Determine if we use tls-auth or tls-crypt