Improve VPN users
- Check VPN users for duplicates in the helper script
This commit is contained in:
parent
39e9223d91
commit
d382350bde
@ -82,6 +82,10 @@ case "$VPN_USERS $VPN_PASSWORDS" in
|
||||
;;
|
||||
esac
|
||||
|
||||
if printf '%s' "$VPN_USERS" | tr ' ' '\n' | sort | uniq -c | grep -qv '^ *1 '; then
|
||||
exiterr "VPN usernames must not contain duplicates."
|
||||
fi
|
||||
|
||||
clear
|
||||
|
||||
cat <<'EOF'
|
||||
|
Loading…
x
Reference in New Issue
Block a user