mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-10-06 08:19:07 +00:00
Fix install script service management to only use debros-node
- Remove references to debros-bootstrap service in update logic - Standardize on single debros-node service for all node types - Fix service stopping/starting during updates - Clean up legacy service references
This commit is contained in:
parent
79d4a3980f
commit
cc276ccc22
@ -101,15 +101,9 @@ check_existing_installation() {
|
||||
if [ -d "$INSTALL_DIR" ] && [ -f "$INSTALL_DIR/bin/node" ]; then
|
||||
log "Found existing DeBros Network installation at $INSTALL_DIR"
|
||||
|
||||
# Check if services are running
|
||||
BOOTSTRAP_RUNNING=false
|
||||
# Check if service is running
|
||||
NODE_RUNNING=false
|
||||
|
||||
if systemctl is-active --quiet debros-bootstrap.service 2>/dev/null; then
|
||||
BOOTSTRAP_RUNNING=true
|
||||
log "Bootstrap service is currently running"
|
||||
fi
|
||||
|
||||
if systemctl is-active --quiet debros-node.service 2>/dev/null; then
|
||||
NODE_RUNNING=true
|
||||
log "Node service is currently running"
|
||||
@ -578,13 +572,11 @@ build_binaries() {
|
||||
if [ "$UPDATE_MODE" = true ]; then
|
||||
log "Update mode: checking for running services before binary update..."
|
||||
|
||||
for service in debros-bootstrap debros-node; do
|
||||
if systemctl is-active --quiet $service.service 2>/dev/null; then
|
||||
log "Stopping $service service to update binaries..."
|
||||
sudo systemctl stop $service.service
|
||||
services_were_running+=("$service")
|
||||
fi
|
||||
done
|
||||
if systemctl is-active --quiet debros-node.service 2>/dev/null; then
|
||||
log "Stopping debros-node service to update binaries..."
|
||||
sudo systemctl stop debros-node.service
|
||||
services_were_running+=("debros-node")
|
||||
fi
|
||||
|
||||
# Give services a moment to fully stop
|
||||
if [ ${#services_were_running[@]} -gt 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user