unnecessary sudo removed (#2619)

All the commands do not work exactly, but since we already work in the beginning on behalf of root, then sudo is not necessary at the beginning. Is that right? 

P.S. when selected in the menu, it says that "command not found".
This commit is contained in:
LoST 2024-12-21 01:48:10 +03:00 committed by GitHub
parent fff54fe7f3
commit 174535b05d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
x-ui.sh
View file

@ -700,23 +700,23 @@ firewall_menu() {
firewall_menu
;;
2)
sudo ufw status numbered
ufw status numbered
firewall_menu
;;
3)
sudo open_ports
open_ports
firewall_menu
;;
4)
sudo delete_ports
delete_ports
firewall_menu
;;
5)
sudo ufw disable
ufw disable
firewall_menu
;;
6)
sudo ufw status verbose
ufw status verbose
firewall_menu
;;
*)