mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-14 21:09:03 +01:00
Updated client name input restrictions and hint
This commit is contained in:
parent
eca5be8aac
commit
b4773385a4
@ -1052,9 +1052,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user