fix: final purge of all merge conflict markers

This commit is contained in:
SamNet-dev
2026-01-25 20:56:22 -06:00
parent d9a9113494
commit 95ad17323e

View File

@@ -211,7 +211,6 @@ check_dependencies() {
apk) install_package procps ;; apk) install_package procps ;;
esac esac
fi fi
<<<<<<< HEAD
# Check for tput (ncurses) # Check for tput (ncurses)
if ! command -v tput &>/dev/null; then if ! command -v tput &>/dev/null; then
@@ -245,8 +244,6 @@ check_dependencies() {
*) log_warn "Could not install geoiplookup automatically" ;; *) log_warn "Could not install geoiplookup automatically" ;;
esac esac
fi fi
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
} }
get_ram_mb() { get_ram_mb() {
@@ -640,15 +637,12 @@ NC='\033[0m'
MAX_CLIENTS=${MAX_CLIENTS:-200} MAX_CLIENTS=${MAX_CLIENTS:-200}
BANDWIDTH=${BANDWIDTH:-5} BANDWIDTH=${BANDWIDTH:-5}
<<<<<<< HEAD
# Ensure we're running as root # Ensure we're running as root
if [ "$EUID" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
echo -e "${RED}Error: This command must be run as root (use sudo conduit)${NC}" echo -e "${RED}Error: This command must be run as root (use sudo conduit)${NC}"
exit 1 exit 1
fi fi
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
# Check if Docker is available # Check if Docker is available
check_docker() { check_docker() {
if ! command -v docker &>/dev/null; then if ! command -v docker &>/dev/null; then
@@ -860,7 +854,6 @@ show_live_stats() {
wait $cmd_pid 2>/dev/null wait $cmd_pid 2>/dev/null
} }
<<<<<<< HEAD
show_peers() { show_peers() {
local stop_peers=0 local stop_peers=0
trap 'stop_peers=1' SIGINT SIGTERM trap 'stop_peers=1' SIGINT SIGTERM
@@ -968,8 +961,6 @@ show_peers() {
trap - SIGINT SIGTERM trap - SIGINT SIGTERM
} }
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
show_status() { show_status() {
local mode="${1:-normal}" # 'live' mode adds line clearing local mode="${1:-normal}" # 'live' mode adds line clearing
local EL="" local EL=""
@@ -1331,11 +1322,8 @@ show_menu() {
echo -e " 6. ⏹️ Stop Conduit" echo -e " 6. ⏹️ Stop Conduit"
echo -e " 7. 🔁 Restart Conduit" echo -e " 7. 🔁 Restart Conduit"
echo "" echo ""
<<<<<<< HEAD
echo -e " 8. 🌍 View live peers by country (Live Map)" echo -e " 8. 🌍 View live peers by country (Live Map)"
echo "" echo ""
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
echo -e " u. 🗑️ Uninstall (remove everything)" echo -e " u. 🗑️ Uninstall (remove everything)"
echo -e " 0. 🚪 Exit" echo -e " 0. 🚪 Exit"
echo -e "${CYAN}─────────────────────────────────────────────────────────────────${NC}" echo -e "${CYAN}─────────────────────────────────────────────────────────────────${NC}"
@@ -1378,13 +1366,10 @@ show_menu() {
read -n 1 -s -r -p "Press any key to return..." < /dev/tty || true read -n 1 -s -r -p "Press any key to return..." < /dev/tty || true
redraw=true redraw=true
;; ;;
<<<<<<< HEAD
8) 8)
show_peers show_peers
redraw=true redraw=true
;; ;;
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
u) u)
uninstall_all uninstall_all
exit 0 exit 0
@@ -1398,11 +1383,7 @@ show_menu() {
;; ;;
*) *)
echo -e "${RED}Invalid choice: ${NC}${YELLOW}$choice${NC}" echo -e "${RED}Invalid choice: ${NC}${YELLOW}$choice${NC}"
<<<<<<< HEAD
echo -e "${CYAN}Choose an option from 0-8, or 'u' to uninstall.${NC}" echo -e "${CYAN}Choose an option from 0-8, or 'u' to uninstall.${NC}"
=======
echo -e "${CYAN}Choose an option from 0-7, or 'u' to uninstall.${NC}"
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
;; ;;
esac esac
done done
@@ -1432,10 +1413,7 @@ case "${1:-menu}" in
start) start_conduit ;; start) start_conduit ;;
stop) stop_conduit ;; stop) stop_conduit ;;
restart) restart_conduit ;; restart) restart_conduit ;;
<<<<<<< HEAD
peers) show_peers ;; peers) show_peers ;;
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
settings) change_settings ;; settings) change_settings ;;
uninstall) uninstall_all ;; uninstall) uninstall_all ;;
help|-h|--help) show_help ;; help|-h|--help) show_help ;;
@@ -1612,12 +1590,9 @@ main() {
check_root check_root
detect_os detect_os
<<<<<<< HEAD
# Ensure all tools (including new ones like tcpdump) are present # Ensure all tools (including new ones like tcpdump) are present
check_dependencies check_dependencies
=======
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
# Check if already installed # Check if already installed
if [ -f "$INSTALL_DIR/conduit" ] && [ "$FORCE_REINSTALL" != "true" ]; then if [ -f "$INSTALL_DIR/conduit" ] && [ "$FORCE_REINSTALL" != "true" ]; then
echo -e "${GREEN}Conduit is already installed!${NC}" echo -e "${GREEN}Conduit is already installed!${NC}"
@@ -1658,12 +1633,6 @@ main() {
esac esac
fi fi
<<<<<<< HEAD
=======
check_dependencies
>>>>>>> 265c362fd226cdc9c394c8249e1618ec2770a8ec
# Interactive settings prompt # Interactive settings prompt
prompt_settings prompt_settings