Fixes #23, enhance 'pivpn add', minor bug fixes & other enhancements

This commit is contained in:
Kaladin Light 2016-05-05 21:04:57 -04:00
parent 6f9d151530
commit dea112f50f
3 changed files with 33 additions and 2 deletions

View file

@ -90,6 +90,11 @@ EOF
printf "Enter a Name for the Client: "
read NAME
if [[ -z "$NAME" ]]; then
printf '%s\n' "::: You can not leave this blank!"
exit 1
fi
cd /etc/openvpn/easy-rsa
source /etc/openvpn/easy-rsa/vars