1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-06-01 19:10:48 +00:00

Re-add a default suggestion for the client name

But only during the setup, not for additional clients
This commit is contained in:
Angristan 2018-08-18 21:47:10 +02:00
parent 47c86874dc
commit 1b18e7f2a7

View File

@ -394,7 +394,7 @@ else
echo "Finally, tell me a name for the client certificate and configuration" echo "Finally, tell me a name for the client certificate and configuration"
echo "Use one word only, no special characters" echo "Use one word only, no special characters"
until [[ "$CLIENT" =~ ^[a-zA-Z0-9_]+$ ]]; do until [[ "$CLIENT" =~ ^[a-zA-Z0-9_]+$ ]]; do
read -rp "Client name: " -e CLIENT read -rp "Client name: " -e -i client CLIENT
done done
echo "" echo ""
echo "Okay, that was all I needed. We are ready to setup your OpenVPN server now" echo "Okay, that was all I needed. We are ready to setup your OpenVPN server now"