#!/bin/bash
cd /data/guanghulab/repo
git fetch origin 2>/dev/null
git reset --hard origin/main 2>/dev/null
cp homepage/fetch_train.py /opt/guanghulab-repo/homepage/fetch_train.py 2>/dev/null
cd /opt/guanghulab-repo/homepage && python3 fetch_train.py 2>/dev/null
pm2 restart guanghulab-mcp-server 2>/dev/null
exit 0
