1
0
mirror of synced 2025-02-16 20:13:19 +03:00

Update VPN user scripts

- Sort VPN usernames when listing users
- Cleanup
This commit is contained in:
hwdsl2 2022-01-04 23:11:05 -06:00
parent abbf19f296
commit 34ba47e79b
3 changed files with 2 additions and 4 deletions

View File

@ -60,7 +60,7 @@ if [ -z "$VPN_USER" ] || [ -z "$VPN_PASSWORD" ]; then
show_intro
echo
echo "List of existing VPN usernames:"
cut -f1 -d : /etc/ipsec.d/passwd
cut -f1 -d : /etc/ipsec.d/passwd | LC_ALL=C sort
echo
echo "Enter the VPN username you want to add or update."
read -rp "Username: " VPN_USER

View File

@ -53,7 +53,7 @@ if [ -z "$VPN_USER" ]; then
show_intro
echo
echo "List of existing VPN usernames:"
cut -f1 -d : /etc/ipsec.d/passwd
cut -f1 -d : /etc/ipsec.d/passwd | LC_ALL=C sort
echo
echo "Enter the VPN username you want to delete."
read -rp "Username: " VPN_USER

View File

@ -98,8 +98,6 @@ IPsec/L2TP and IPsec/XAuth ("Cisco IPsec") modes.
WARNING: *ALL* existing VPN users will be removed and replaced
with the users listed below.
Please double check before continuing!
==================================================
Updated list of VPN users (username | password):