Files
overub/scripts/update-bot.sh
2025-12-21 17:12:32 +01:00

13 lines
189 B
Bash
Executable File

#!/bin/bash
BRANCH=${1:-main}
cd /path/to/overub || exit
git fetch origin
git checkout "$BRANCH"
git pull origin "$BRANCH"
systemctl restart overub
echo "Bot updated to latest $BRANCH"