mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2024-05-28 17:03:30 +02:00
Cleanup
This commit is contained in:
parent
d75eb29e74
commit
c9f12a48f6
|
@ -5,7 +5,7 @@
|
||||||
# Based on the work of Nyr and contributors at:
|
# Based on the work of Nyr and contributors at:
|
||||||
# https://github.com/Nyr/openvpn-install
|
# https://github.com/Nyr/openvpn-install
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022-2023 Lin Song <linsongui@gmail.com>
|
# Copyright (c) 2022-2024 Lin Song <linsongui@gmail.com>
|
||||||
# Copyright (c) 2013-2023 Nyr
|
# Copyright (c) 2013-2023 Nyr
|
||||||
#
|
#
|
||||||
# Released under the MIT License, see the accompanying file LICENSE.txt
|
# Released under the MIT License, see the accompanying file LICENSE.txt
|
||||||
|
@ -502,7 +502,7 @@ EOF
|
||||||
show_header2() {
|
show_header2() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
Copyright (c) 2022-2023 Lin Song
|
Copyright (c) 2022-2024 Lin Song
|
||||||
Copyright (c) 2013-2023 Nyr
|
Copyright (c) 2013-2023 Nyr
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -955,6 +955,7 @@ else
|
||||||
elif [ -n "$num_of_clients" ]; then
|
elif [ -n "$num_of_clients" ]; then
|
||||||
printf '\n%s\n' "Total: $num_of_clients clients"
|
printf '\n%s\n' "Total: $num_of_clients clients"
|
||||||
fi
|
fi
|
||||||
|
exit
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
num_of_clients=$(tail -n +2 /etc/openvpn/server/easy-rsa/pki/index.txt | grep -c "^V")
|
num_of_clients=$(tail -n +2 /etc/openvpn/server/easy-rsa/pki/index.txt | grep -c "^V")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user