init: Rename to initpki

* This function only initialize the EasyRSA PKI tools now.
* Decoupled from the init process.
This commit is contained in:
Kyle Manna 2014-07-05 21:25:00 -07:00
parent 6fe867c52b
commit 6ca11162a5

View File

@ -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