diff --git a/deploy/install.sh b/deploy/install.sh index 5bcfa27..8f77aaf 100755 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -35,6 +35,14 @@ else echo "Konfigurationsdatei existiert bereits - wird nicht überschrieben." fi +# Korrigiere falls die Datei am falschen Ort liegt +if [ -f "/opt/yourchat/chatconfig.json" ] && [ ! -f "/opt/yourchat/config/chatconfig.json" ]; then + echo "Korrigiere Konfigurationsdatei-Pfad..." + sudo mv /opt/yourchat/chatconfig.json /opt/yourchat/config/ + sudo chown yourchat:yourchat /opt/yourchat/config/chatconfig.json + sudo chmod 644 /opt/yourchat/config/chatconfig.json +fi + # Systemd Service erstellen echo "=== Systemd Service erstellen ===" sudo tee /etc/systemd/system/yourchat.service > /dev/null <