Openvpn error in command line install script

The following instructions

tar -z -x -f /tmp/easyrsa.tar.gz
 
# Configuration parameters
cat << EOF > /etc/profile.d/easy-rsa.sh
export EASYRSA_PKI="${VPN_PKI}"
export EASYRSA_TEMP_DIR="/tmp"
export EASYRSA_CERT_EXPIRE="3650"
export EASYRSA_BATCH="1"
alias easyrsa="/root/EasyRSA-3.1.7/easyrsa"
EOF
. /etc/profile.d/easy-rsa.sh

install failed, In my case, tar command placed files in /tmp but the alias points to /root.

Now it will also work for those like you who switched to a different (from /root) directory before running the commands.

1 Like

Thanks for quick response and fix!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.