Files
boWave/scripts/setup-boot.sh
2026-03-26 14:31:08 +01:00

26 lines
647 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -e
echo "Setting up production (boat) environment..."
# Copy .env if not exists
if [ ! -f .env ]; then
cp .env.example .env
echo "Created .env please edit SPOTIFY_NAME, BOAT_NAME, BOAT_MMSI"
fi
# Create music directory
mkdir -p music
# Init pipes (persistent on boat)
PIPE_DIR=/tmp/audio bash scripts/init-pipes.sh
echo ""
echo "Edit .env then run 'make boot' to start."
echo "Dashboard: http://<boat-ip>:8080"
echo ""
echo "IMPORTANT: Review docker-compose.yml and uncomment:"
echo " - /dev/ttyUSB0 for NMEA hardware"
echo " - /dev/snd for zone audio output"
echo " - /dev/dri for hardware video decoding"