Skip to content

Commit

Permalink
unnecessary sudo removed (#2619)
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
LoST202 authored Dec 20, 2024
1 parent fff54fe commit 174535b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand Down

0 comments on commit 174535b

Please sign in to comment.