74 Commits

Author SHA1 Message Date
115b64d8d2 Add additional bootstrap addresses for improved connectivity 2025-08-04 17:15:01 +03:00
0cabfd6381 Clean up output messages: remove duplicate 'node' and Node Type line
- Remove duplicate 'node node' references in service start messages
- Remove 'Node Type: node' line from completion output
- Simplify service messages to 'Starting/Started DeBros Network service'
- Simplify final success messages to remove redundant 'node' references
- Clean, professional output without confusing terminology duplication
2025-08-04 17:01:29 +03:00
d447f6546b Force NODE_TYPE to 'node' in update mode to complete bootstrap migration
- Remove logic that detects existing bootstrap.yaml and sets NODE_TYPE to 'bootstrap'
- Always use NODE_TYPE='node' in update mode for consistent terminology
- This ensures all services, configs, and outputs use 'node' terminology
- Completes the full migration from bootstrap to node naming convention
- Existing bootstrap installations will be updated to use node terminology
2025-08-04 16:58:07 +03:00
4f204a37f4 Fix final bootstrap port references in completion output
- Replace BOOTSTRAP_PORT, RQLITE_BOOTSTRAP_PORT, RAFT_BOOTSTRAP_PORT
  with NODE_PORT, RQLITE_NODE_PORT, RAFT_NODE_PORT in completion output
- Ensures all port variables are correctly defined and displayed
- Completes the full bootstrap-to-node terminology migration
2025-08-04 16:55:20 +03:00
946e2568bb Fix ExecStart command in systemd service to use NODE_PORT instead of BOOTSTRAP_PORT
- Update service creation to use NODE_PORT instead of undefined BOOTSTRAP_PORT
- This fixes the service startup failure where the wrong port variable was referenced
- Service command now correctly uses: /opt/debros/bin/node -data /opt/debros/data/node -port 4001
2025-08-04 16:54:52 +03:00
8b1fbdd9e3 Rename all bootstrap references to node in installation script
- Replace BOOTSTRAP_PORT with NODE_PORT (4001)
- Replace RQLITE_BOOTSTRAP_PORT with RQLITE_NODE_PORT (5001)
- Replace RAFT_BOOTSTRAP_PORT with RAFT_NODE_PORT (7001)
- Update port checks to use new node port variables
- Update configuration generation to use NODE_PORT variables
- Update firewall configuration to use node ports
- Update systemd service creation to use node terminology
- Simplify port management by removing separate bootstrap/node distinctions
- All installations now use consistent 'node' terminology
2025-08-04 16:51:52 +03:00
73d4d2b17b Fix Text file busy error during binary updates
- Stop running services before copying new binaries during update mode
- Wait 3 seconds for services to fully stop
- Restart services after successful binary update
- Prevents 'Text file busy' error when overwriting executable files
- Only affects update mode, fresh installs work normally
2025-08-04 16:46:41 +03:00
7e849ed778 Fix port conflict during updates
- Skip port availability check during update mode
- Existing services will be using the ports, so checking causes false conflicts
- Add log message explaining why port check is skipped
- This fixes the 'Port 4001 is already in use' error during updates
2025-08-04 16:43:37 +03:00
94ea521ffa Comprehensive README cleanup: Remove node type references and clarify permissions
- Remove references to bootstrap/regular node distinctions throughout
- Update ports from ranges (4001-4003) to single ports (4001)
- Change 'Node Types' section to 'Node Setup'
- Remove node type selection references in deployment section
- Update table of contents to reflect structural changes
- Clarify script execution requires elevated privileges (sudo bash)
- Add user permission guidance for server setup
- Simplify network discovery descriptions
- Update firewall and service management descriptions
- Keep development section intact as it still uses separate binaries
2025-08-04 16:35:49 +03:00
3d7b090b22 Update README to reflect install script changes
- Remove references to node type selection in deployment section
- Update directory structure to show single node configuration
- Update service management commands to use debros-node instead of debros-bootstrap
- Update configuration examples to show single node.yaml file
- Simplify node setup section to reflect bootstrap nodes named 'node'
- Update all maintenance and monitoring commands
- Keep development section unchanged as it still uses separate bootstrap/node binaries
2025-08-04 16:28:37 +03:00
e165dfd689 Fix script issues with root detection and node configuration
- Fix root confirmation prompt to use echo -n and read instead of read -rp
- Fix non-interactive mode to use NODE_TYPE='node' instead of 'bootstrap'
- Simplify firewall configuration to always use bootstrap ports for node
- Fix final installation summary to show correct ports for node type
- Ensure consistent behavior across all node type checks
2025-08-04 16:26:59 +03:00
6b0951c601 Remove node type selection and default to bootstrap node named 'node'
- Removed interactive node type selection (bootstrap vs regular)
- Set NODE_TYPE to 'node' by default
- Configure as bootstrap node but with 'node' naming
- Use bootstrap ports and configuration settings
- Simplified installation process by removing node type choice
2025-08-04 16:24:41 +03:00
676536d310 Implement root execution with security warning
- Add security warning when running as root
- Require explicit confirmation in interactive mode
- Allow automatic proceeding in non-interactive mode
- Use sudo alias approach for clean root execution
- Maintain security consciousness while enabling automation
- Prevent accidental root execution without user awareness
2025-08-04 16:03:04 +03:00
ec3cca20aa Fix script hanging issues - Add comprehensive non-interactive mode
Major fixes for script reliability:

Interactive Mode Issues:
- Added NON_INTERACTIVE detection when run via curl | bash
- Automatic defaults for config wizard in non-interactive mode
- Sensible fallbacks for existing installation handling

Potential Hang Points Fixed:
- Non-interactive mode uses bootstrap node type by default
- Placeholder Solana wallet for automated installs
- Auto-update existing installations without prompts
- Fixed log function definition order issue

Error Handling Improvements:
- Better network operation error handling
- Cleaner function organization
- Removed duplicate log function code

Now supports both interactive and non-interactive usage modes safely.
2025-08-04 15:10:17 +03:00
63ab2d54ac Add missing RQLite installation to install script
- Added install_rqlite() function with architecture detection
- Downloads and installs RQLite v8.30.0 from GitHub releases
- Supports amd64, arm64, and arm architectures
- Checks if RQLite is already installed before downloading
- Installs both rqlited and rqlite binaries to /usr/local/bin
- Added RQLite installation to main() function flow
- Verifies installation success and displays version
2025-08-04 14:57:32 +03:00
ee08f80821 Fix installation script URLs in README
- Update installation command to use correct Gitea repository URL
- Fix both installation and update commands to point to git.debros.io
- Replace GitHub URLs with proper DeBros Gitea instance URLs
2025-08-04 14:47:21 +03:00
f05e50ad19 Improve UFW firewall configuration
- Add UFW rules regardless of current UFW status
- Preserve user's existing UFW policy (don't auto-enable)
- Provide better feedback on rule addition and UFW status
- Enhanced manual configuration instructions when UFW not found
- Rules are ready when UFW is eventually enabled by user
2025-08-04 14:44:11 +03:00
abcfca230d Enhance systemd service creation by cleaning up existing services and ensuring a fresh start 2025-08-03 17:54:54 +03:00
3d504efcea Refactor installation script to support update mode and improve dependency checks 2025-08-03 17:24:11 +03:00
69484a8b68 Update README to enhance Table of Contents with additional sections and details 2025-08-03 17:05:13 +03:00
8523cb2fb3 Update import paths to use the full module path for consistency 2025-08-03 17:00:52 +03:00
f0bc9f1adf Update README to include version number v0.12.4-beta 2025-08-03 16:53:06 +03:00
116885e6d7 Update import paths to use the full module path for consistency 2025-08-03 16:34:02 +03:00
a6aa516d74 Initial commit 2025-08-03 16:24:04 +03:00