feat: Verbesserung der Berechtigungen und Installation von Abhängigkeiten im Kiosk-Installationsskript zur Erhöhung der Sicherheit und Benutzerfreundlichkeit. Hinzufügen von chmod-Befehlen für Installationsdateien und Anpassung der Berechtigungen für Backend-Dienste.
This commit is contained in:
parent
77a29a7989
commit
4ec09a4c7a
@ -31,15 +31,19 @@ cp ../requirements.txt /opt/myp/backend/
|
||||
# Installiere Python-Abhängigkeiten global
|
||||
echo "Installiere Python-Abhängigkeiten..."
|
||||
cd /opt/myp/backend
|
||||
pip3 install -r requirements.txt
|
||||
pip3 install --break-system-packages -r requirements.txt
|
||||
|
||||
# Setze Berechtigungen
|
||||
echo "Setze Berechtigungen..."
|
||||
chmod -R 755 /opt/myp/backend
|
||||
chmod +x /opt/myp/backend/app/app.py
|
||||
chown -R user:user /opt/myp
|
||||
chown -R user:user /home/user
|
||||
|
||||
# Installiere Services
|
||||
echo "Installiere Services..."
|
||||
chmod 644 myp-backend.service
|
||||
chmod 644 myp-kiosk.service
|
||||
cp myp-backend.service /etc/systemd/system/
|
||||
cp myp-kiosk.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
@ -62,6 +66,7 @@ cat > /home/user/.config/openbox/autostart << EOF
|
||||
systemctl --user start myp-kiosk.service &
|
||||
EOF
|
||||
|
||||
chmod 755 /home/user/.config/openbox/autostart
|
||||
chown user:user /home/user/.config/openbox/autostart
|
||||
|
||||
echo "=== Installation abgeschlossen ==="
|
||||
|
@ -1183,7 +1183,14 @@ install_kiosk_mode() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Setze Berechtigungen für alle Installationsdateien
|
||||
echo -e "${BLUE}Setze Berechtigungen...${NC}"
|
||||
chmod +x install-kiosk.sh
|
||||
chmod 644 myp-backend.service
|
||||
chmod 644 myp-kiosk.service
|
||||
chmod 644 requirements.txt
|
||||
chmod 644 README.md
|
||||
|
||||
./install-kiosk.sh
|
||||
|
||||
# Das Skript startet automatisch neu, daher wird dieser Code nicht erreicht
|
||||
|
Loading…
x
Reference in New Issue
Block a user