- Extract shared helpers into steps/common.sh (colors, print_*, wait_for_user, ask_confirmation) - Split each install step into its own sourced script under steps/ - setup.sh now sources step files instead of duplicating logic - Add setup_ollama.sh: Ollama-only device setup (no Docker) - Add setup_onyx.sh: Onyx-only device setup with auto-detection of Ollama host via network scan - setup_ollama.sh prints ready-to-run setup_onyx.sh command with detected IP at completion - Docker memory recommendation is MAX when machine has <20 GB RAM, 20 GB otherwise - cleanup.sh and check-status.sh source steps/common.sh with inline curl fallback - check-status.sh detects device mode (single/ollama/onyx) and skips irrelevant checks - cleanup.sh reinstall message lists all three setup one-liners - README updated with split-device one-liner commands
27 lines
848 B
Bash
Executable file
27 lines
848 B
Bash
Executable file
#!/bin/bash
|
|
# Step: Install Onyx. Source common.sh before sourcing this file.
|
|
# Requires: Docker to be running, repo cloned at ~/riotsecure.
|
|
|
|
install_onyx() {
|
|
print_step "Installing Onyx"
|
|
|
|
if [ -d ~/riotsecure/onyx_data ]; then
|
|
print_warning "Onyx data directory already exists. Skipping installation."
|
|
else
|
|
print_warning "Installing Onyx..."
|
|
echo "When prompted:"
|
|
echo " 1. Press ENTER to acknowledge"
|
|
echo " 2. Choose '2' for Standard"
|
|
echo " 3. Press ENTER for Edge"
|
|
echo ""
|
|
|
|
cd ~/riotsecure
|
|
curl -fsSL https://onyx.app/install_onyx.sh | bash
|
|
|
|
print_success "Onyx installation complete"
|
|
fi
|
|
|
|
print_warning "Configuring power settings to prevent sleep..."
|
|
sudo pmset -a sleep 0 disksleep 0
|
|
print_success "Sleep prevention configured"
|
|
}
|