#!/bin/bash set -e if [ "$(hostname)" = "stein2" ]; then echo "stein2 is not allowed to do this" exit fi export PATH="$HOME/.dotnet:$PATH" cd ~/.openclaw/workspace/projects/gott dotnet publish -c Release -o publish cp wwwroot/index.html publish/wwwroot/index.html ssh -o ConnectTimeout=5 meleki@192.168.100.200 "nohup sudo systemctl restart gott > /dev/null 2>&1 &" echo "Service restarted"