This commit is contained in:
Giuseppe Piccinni 2024-11-29 03:19:43 +00:00 committed by GitHub
commit 747f35abeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1346,9 +1346,10 @@ function manageMenu() {
echo " 1) Add a new user"
echo " 2) Revoke existing user"
echo " 3) Remove OpenVPN"
echo " 4) Exit"
until [[ $MENU_OPTION =~ ^[1-4]$ ]]; do
read -rp "Select an option [1-4]: " MENU_OPTION
echo " 4) List current connected users"
echo " 5) Exit"
until [[ $MENU_OPTION =~ ^[1-5]$ ]]; do
read -rp "Select an option [1-5]: " MENU_OPTION
done
case $MENU_OPTION in
@ -1362,6 +1363,9 @@ function manageMenu() {
removeOpenVPN
;;
4)
cat /var/log/openvpn/status.log
;;
5)
exit 0
;;
esac