"Refactor README and scripts for Raspberry Pi installation"

This commit is contained in:
Till Tomczak 2025-05-29 16:11:14 +02:00
parent 147e9ecbde
commit b6c6a9d688
4 changed files with 493 additions and 1168 deletions

View File

@ -1 +0,0 @@

View File

@ -441,8 +441,21 @@ case "$1" in
update)
echo "Aktualisiere MYP Druckerverwaltung..."
cd /opt/myp-druckerverwaltung
sudo -u myp git pull
sudo -u myp ./venv/bin/pip install -r requirements.txt
sudo -u myp git pull || echo "Git pull nicht möglich - lokale Installation"
# Aktualisiere Python-Dependencies
if [ -f "requirements_fixed.txt" ]; then
sudo -u myp ./venv/bin/pip install -r requirements_fixed.txt
fi
# Aktualisiere Node.js Dependencies falls vorhanden
if [ -f "package.json" ]; then
sudo -u myp npm install
if [ -f "tailwind.config.js" ]; then
sudo -u myp npm run build:css || true
fi
fi
systemctl restart myp-druckerverwaltung
;;
kiosk-restart)

View File

@ -234,7 +234,7 @@ else
warning "⚠️ WICHTIG: Starte das System manuell neu, um den Kiosk-Modus zu aktivieren:"
warning " sudo reboot"
echo
info "📞 Bei Problemen: Lies die Anleitung in README_RaspberryPi_Kiosk.md"
info "📞 Bei Problemen: Prüfe die Logs mit journalctl -u myp-kiosk -f"
fi
echo

File diff suppressed because it is too large Load Diff