feat: add aitbc CLI to system PATH during setup
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled

- Added symlink from /opt/aitbc/aitbc-cli to /usr/local/bin/aitbc-cli
- CLI now available system-wide without requiring /opt/aitbc in PATH
- Fixes hermes agent stumble when aitbc CLI not found
- Added error handling if symlink creation fails
- Provides manual PATH addition instructions as fallback
This commit is contained in:
aitbc
2026-05-26 10:51:43 +02:00
parent 670b700d30
commit ec8fbdc744

View File

@@ -576,6 +576,19 @@ install_services() {
systemctl daemon-reload
fi
# Add aitbc CLI to PATH
log "Adding aitbc CLI to system PATH..."
if [ -f "/opt/aitbc/aitbc-cli" ]; then
ln -sf /opt/aitbc/aitbc-cli /usr/local/bin/aitbc-cli 2>/dev/null || {
warning "Failed to create symlink for aitbc-cli"
warning "You may need to add /opt/aitbc to PATH manually"
}
chmod +x /usr/local/bin/aitbc-cli 2>/dev/null || true
log "aitbc CLI added to /usr/local/bin/aitbc-cli"
else
warning "aitbc-cli not found at /opt/aitbc/aitbc-cli"
fi
success "Systemd services installed"
}