install.sh 567 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. if [[ $EUID -ne 0 ]]; then
  3. echo "Error: This script must be run as root."
  4. exit 1
  5. fi
  6. echo "Installing FirewallFalcon Manager..."
  7. # Force IPv4 to avoid GitHub IPv6 timeouts
  8. MENU_URL="https://raw.githubusercontent.com/firewallfalcons/FirewallFalcon-Manager/main/menu.sh"
  9. # Download using wget -4 (IPv4 only)
  10. wget -4 -q -O /usr/local/bin/menu "$MENU_URL"
  11. # Make executable
  12. chmod +x /usr/local/bin/menu
  13. # Execute using bash to bypass CRLF/Shebang issues
  14. bash /usr/local/bin/menu --install-setup
  15. echo "Installation complete! Type 'menu' to start."