#!/bin/bash # Skript zum Neubauen und Testen der robots Meta-Tag Änderung echo "=== 1. Binary neu bauen ===" cd /home/torsten/singlechat || exit 1 cmake --build build -j2 if [ $? -ne 0 ]; then echo "FEHLER: Build fehlgeschlagen!" exit 1 fi echo -e "\n=== 2. Service stoppen ===" sudo systemctl stop ypchat.service sleep 2 echo -e "\n=== 3. Binary nach /opt/ypchat/bin/ kopieren ===" sudo cp build/singlechat.wt /opt/ypchat/bin/singlechat.wt echo -e "\n=== 4. Service starten ===" sudo systemctl start ypchat.service sleep 3 echo -e "\n=== 5. Service-Status prüfen ===" sudo systemctl status ypchat.service --no-pager | grep -E "Active|since" | head -2 echo -e "\n=== 6. robots Meta-Tag testen ===" ./test_robots_tag.sh echo -e "\n=== Fertig! ==="