diff --git a/Read2.txt b/Read2.txt new file mode 100644 index 0000000..4bcdd9a --- /dev/null +++ b/Read2.txt @@ -0,0 +1 @@ +This is a Test \ No newline at end of file diff --git a/openvpn-install.sh b/openvpn-install.sh index f612ec8..38a85a3 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -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