Extracted pmset config into steps/step_sleep.sh and call it from setup.sh, setup_ollama.sh, and setup_onyx.sh so both devices in a split setup stay awake.
23 lines
694 B
Bash
Executable file
23 lines
694 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
|
|
}
|