Change Client profiles save folder to /opt/ovpn
This commit is contained in:
parent
0dc5107d24
commit
09a912337d
2 changed files with 4 additions and 3 deletions
1
Read2.txt
Normal file
1
Read2.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
This is a Test
|
||||||
|
|
@ -1031,11 +1031,11 @@ function newClient () {
|
||||||
|
|
||||||
# Home directory of the user, where the client configuration (.ovpn) will be written
|
# Home directory of the user, where the client configuration (.ovpn) will be written
|
||||||
if [ -e "/home/$CLIENT" ]; then # if $1 is a user name
|
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
|
elif [ "${SUDO_USER}" ]; then # if not, use SUDO_USER
|
||||||
homeDir="/home/${SUDO_USER}"
|
homeDir="/opt/ovpn"
|
||||||
else # if not SUDO_USER, use /root
|
else # if not SUDO_USER, use /root
|
||||||
homeDir="/root"
|
homeDir="/opt/ovpn"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine if we use tls-auth or tls-crypt
|
# Determine if we use tls-auth or tls-crypt
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue