Explorar el Código

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".
LoST hace 3 meses
padre
commit
174535b05d
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      x-ui.sh

+ 5 - 5
x-ui.sh

@@ -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
         ;;
     *)