From e858f5b6b207ecd02513afdf7d91fac7d2989782 Mon Sep 17 00:00:00 2001 From: rection Date: Wed, 23 Oct 2019 23:51:54 +0200 Subject: [PATCH] readjustment for PR comments --- openvpn-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index be2010e..61facdc 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -668,13 +668,13 @@ function installOpenVPN () { SERVER_NAME="server_$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)" echo "set_var EASYRSA_REQ_CN $SERVER_CN" >> vars - # Workaround to remove unharmful error until easy-rsa 3.0.7 - # https://github.com/OpenVPN/easy-rsa/issues/261 - cd /etc/openvpn/easy-rsa/ - sed -i 's/^RANDFILE/#RANDFILE/g' pki/openssl-easyrsa.cnf - # Create the PKI, set up the CA, the DH params and the server certificate ./easyrsa init-pki + + # Workaround to remove unharmful error until easy-rsa 3.0.7 + # https://github.com/OpenVPN/easy-rsa/issues/261 + sed -i 's/^RANDFILE/#RANDFILE/g' pki/openssl-easyrsa.cnf + ./easyrsa --batch build-ca nopass if [[ $DH_TYPE == "2" ]]; then @@ -1142,7 +1142,7 @@ function removeOpenVPN () { read -rp "Do you really want to remove OpenVPN? [y/n]: " -e -i n REMOVE if [[ "$REMOVE" = 'y' ]]; then # Get OpenVPN port from the configuration - PORT=$(grep '^port ' /etc/op envpn/server.conf | cut -d " " -f 2) + PORT=$(grep '^port ' /etc/openvpn/server.conf | cut -d " " -f 2) # Stop OpenVPN if [[ "$OS" =~ (fedora|arch|centos) ]]; then