Aktualisiere Installations- und Konfigurationsskripte zur Verwendung eines neuen Pfads für die Konfigurationsdatei

- Ändere den Zielpfad der Konfigurationsdatei in `install.sh` und `update_config.sh` von `/opt/yourchat/config/chatconfig.json` nach `/etc/yourpart/chatconfig.json`.
- Füge die Erstellung des Verzeichnisses `/etc/yourpart` im Installationsskript hinzu und passe die Berechtigungen entsprechend an.
This commit is contained in:
Torsten Schulz (local)
2025-09-01 16:39:52 +02:00
parent 1a94e7cd45
commit f5a5f5ae2c
2 changed files with 13 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ set -e # Beende bei Fehlern
echo "=== YourChat - Konfigurations-Update Script ==="
CONFIG_SOURCE="config/chatconfig.json"
CONFIG_TARGET="/opt/yourchat/config/chatconfig.json"
CONFIG_TARGET="/etc/yourpart/chatconfig.json"
# Korrigiere falls die Datei am falschen Ort liegt
if [ -f "/opt/yourchat/chatconfig.json" ] && [ ! -f "$CONFIG_TARGET" ]; then