10 lines
209 B
Bash
10 lines
209 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SSH_HOST="root@10.10.10.10"
|
|
SSH_PORT="1090"
|
|
APP_DIR="/opt/tg-bot"
|
|
|
|
ssh -p "$SSH_PORT" "$SSH_HOST" \
|
|
"cd \"$APP_DIR\" && git pull --ff-only && systemctl restart tg-bot"
|