"Refactor README and scripts for Raspberry Pi installation"
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
|
|
@@ -441,8 +441,21 @@ case "$1" in
|
|||||||
update)
|
update)
|
||||||
echo "Aktualisiere MYP Druckerverwaltung..."
|
echo "Aktualisiere MYP Druckerverwaltung..."
|
||||||
cd /opt/myp-druckerverwaltung
|
cd /opt/myp-druckerverwaltung
|
||||||
sudo -u myp git pull
|
sudo -u myp git pull || echo "Git pull nicht möglich - lokale Installation"
|
||||||
sudo -u myp ./venv/bin/pip install -r requirements.txt
|
|
||||||
|
# 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
|
systemctl restart myp-druckerverwaltung
|
||||||
;;
|
;;
|
||||||
kiosk-restart)
|
kiosk-restart)
|
||||||
|
@@ -234,7 +234,7 @@ else
|
|||||||
warning "⚠️ WICHTIG: Starte das System manuell neu, um den Kiosk-Modus zu aktivieren:"
|
warning "⚠️ WICHTIG: Starte das System manuell neu, um den Kiosk-Modus zu aktivieren:"
|
||||||
warning " sudo reboot"
|
warning " sudo reboot"
|
||||||
echo
|
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
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user