ソースを参照

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 3 ヶ月 前
コミット
174535b05d
1 ファイル変更5 行追加5 行削除
  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
         ;;
     *)