mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-10-06 08:19:07 +00:00
Fix debros-node service failing due to invalid -port flag
- Remove invalid -port flag from systemd service ExecStart command - The node binary doesn't support -port flag, it uses hardcoded port 4001 - Fix variable name RAFT_NODE_PORT to RAFT_PORT in two places - Update check_existing_installation to only check for node binary since bootstrap binary was removed This resolves the service startup failure where the service was exiting with: 'flag provided but not defined: -port'
This commit is contained in:
parent
b9ef151643
commit
3975b5a59d
@ -98,7 +98,7 @@ detect_os() {
|
|||||||
|
|
||||||
# Check if DeBros Network is already installed
|
# Check if DeBros Network is already installed
|
||||||
check_existing_installation() {
|
check_existing_installation() {
|
||||||
if [ -d "$INSTALL_DIR" ] && [ -f "$INSTALL_DIR/bin/bootstrap" ] && [ -f "$INSTALL_DIR/bin/node" ]; then
|
if [ -d "$INSTALL_DIR" ] && [ -f "$INSTALL_DIR/bin/node" ]; then
|
||||||
log "Found existing DeBros Network installation at $INSTALL_DIR"
|
log "Found existing DeBros Network installation at $INSTALL_DIR"
|
||||||
|
|
||||||
# Check if services are running
|
# Check if services are running
|
||||||
@ -669,7 +669,7 @@ configure_firewall() {
|
|||||||
log "Required ports to allow:"
|
log "Required ports to allow:"
|
||||||
log " - Port $NODE_PORT (Node)"
|
log " - Port $NODE_PORT (Node)"
|
||||||
log " - Port $RQLITE_PORT (RQLite)"
|
log " - Port $RQLITE_PORT (RQLite)"
|
||||||
log " - Port $RAFT_NODE_PORT (Raft)"
|
log " - Port $RAFT_PORT (Raft)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -693,7 +693,7 @@ create_systemd_service() {
|
|||||||
|
|
||||||
# Determine the correct ExecStart command based on node type
|
# Determine the correct ExecStart command based on node type
|
||||||
local exec_start=""
|
local exec_start=""
|
||||||
exec_start="$INSTALL_DIR/bin/node -data $INSTALL_DIR/data/node -port $NODE_PORT"
|
exec_start="$INSTALL_DIR/bin/node -data $INSTALL_DIR/data/node"
|
||||||
|
|
||||||
cat > /tmp/debros-$NODE_TYPE.service << EOF
|
cat > /tmp/debros-$NODE_TYPE.service << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -828,7 +828,7 @@ main() {
|
|||||||
|
|
||||||
log "${GREEN}Node Port:${NOCOLOR} ${CYAN}$NODE_PORT${NOCOLOR}"
|
log "${GREEN}Node Port:${NOCOLOR} ${CYAN}$NODE_PORT${NOCOLOR}"
|
||||||
log "${GREEN}RQLite Port:${NOCOLOR} ${CYAN}$RQLITE_PORT${NOCOLOR}"
|
log "${GREEN}RQLite Port:${NOCOLOR} ${CYAN}$RQLITE_PORT${NOCOLOR}"
|
||||||
log "${GREEN}Raft Port:${NOCOLOR} ${CYAN}$RAFT_NODE_PORT${NOCOLOR}"
|
log "${GREEN}Raft Port:${NOCOLOR} ${CYAN}$RAFT_PORT${NOCOLOR}"
|
||||||
|
|
||||||
log "${BLUE}==================================================${NOCOLOR}"
|
log "${BLUE}==================================================${NOCOLOR}"
|
||||||
log "${GREEN}Management Commands:${NOCOLOR}"
|
log "${GREEN}Management Commands:${NOCOLOR}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user