Merge pull request #135 from efrecon/master

Automatically creating CCD directory
This commit is contained in:
Kyle Manna 2016-06-23 06:28:05 -07:00 committed by GitHub
commit 4f269704c4
2 changed files with 4 additions and 1 deletions

View File

@ -154,6 +154,9 @@ while getopts ":a:e:C:T:r:s:du:cp:n:DNmf:tz2" opt; do
esac esac
done done
# Create ccd directory for static routes
[ ! -d "$OPENVPN/ccd" ] && mkdir -p $OPENVPN/ccd
# if new routes were not defined with -r, use default # if new routes were not defined with -r, use default
[ ${#TMP_ROUTES[@]} -gt 0 ] && OVPN_ROUTES=("${TMP_ROUTES[@]}") [ ${#TMP_ROUTES[@]} -gt 0 ] && OVPN_ROUTES=("${TMP_ROUTES[@]}")

View File

@ -24,7 +24,7 @@ easyrsa init-pki
easyrsa build-ca $nopass easyrsa build-ca $nopass
easyrsa gen-dh easyrsa gen-dh
openvpn --genkey --secret $OPENVPN/pki/ta.key openvpn --genkey --secret $EASYRSA_PKI/ta.key
# Was nice to autoset, but probably a bad idea in practice, users should # Was nice to autoset, but probably a bad idea in practice, users should
# have to explicitly specify the common name of their server # have to explicitly specify the common name of their server