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
|
esac
|
||||||
|
|
||||||
|
if printf '%s' "$VPN_USERS" | tr ' ' '\n' | sort | uniq -c | grep -qv '^ *1 '; then
|
||||||
|
exiterr "VPN usernames must not contain duplicates."
|
||||||
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user