Merge pull request #699 from Serpentiel/patch-1

Updated client name input restrictions and hint
This commit is contained in:
Stanislas 2020-08-03 17:14:22 +02:00 committed by GitHub
commit e52a54b92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1047,9 +1047,9 @@ verb 3" >>/etc/openvpn/client-template.txt
function newClient() {
echo ""
echo "Tell me a name for the client."
echo "Use one word only, no special characters."
echo "The name must consist of alphanumeric character. It may also include an underscore or a dash."
until [[ $CLIENT =~ ^[a-zA-Z0-9_]+$ ]]; do
until [[ $CLIENT =~ ^[a-zA-Z0-9_-]+$ ]]; do
read -rp "Client name: " -e CLIENT
done