From 6ca11162a5e3c9df0c5f3e454e6542c48a03e55b Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Sat, 5 Jul 2014 21:25:00 -0700 Subject: [PATCH] init: Rename to initpki * This function only initialize the EasyRSA PKI tools now. * Decoupled from the init process. --- bin/{ovpn_init => ovpn_initpki} | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename bin/{ovpn_init => ovpn_initpki} (85%) diff --git a/bin/ovpn_init b/bin/ovpn_initpki similarity index 85% rename from bin/ovpn_init rename to bin/ovpn_initpki index 65130ff..251dd09 100755 --- a/bin/ovpn_init +++ b/bin/ovpn_initpki @@ -1,18 +1,15 @@ #!/bin/bash # -# Initialize the PKI and OpenVPN configs +# Initialize the EasyRSA PKI # set -ex -# Generate the ovpn env file -ovpn_genconfig "$1" - source "$OPENVPN/ovpn_env.sh" -# Specify "nopass" as arg[2] to make the CA insecure -nopass=$2 +# Specify "nopass" as arg[2] to make the CA insecure (not recommended!) +nopass=$1 # Provides a sufficient warning before erasing pre-existing files easyrsa init-pki