This repository has been archived on 2025-05-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
pi-race-timer/install.sh
2025-04-29 23:36:37 +02:00

27 lines
728 B
Bash

#!/bin/bash
echo "📦 Projekt wird installiert..."
# System aktualisieren
sudo apt update && sudo apt upgrade -y
sudo apt install python3-venv git -y
# Projekt klonen
git clone https://github.com/DEIN_GIT_REPO/pi-race-timer.git /home/pi/pi-race-timer
cd /home/pi/pi-race-timer
# Virtuelle Umgebung einrichten
python3 -m venv venv
source venv/bin/activate
# Python-Abhängigkeiten installieren
pip install -U pip
pip install -r requirements.txt
# systemd-Dienst einrichten
sudo cp pi-race-timer.service /etc/systemd/system/
sudo systemctl daemon-reexec
sudo systemctl enable pi-race-timer
sudo systemctl start pi-race-timer
echo "✅ Installation abgeschlossen. Webinterface erreichbar unter: http://<raspberry-ip>:5000"