14 lines
384 B
Bash
14 lines
384 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
trap 'echo "[stop] shutting down..."; kill 0' SIGINT SIGTERM
|
|
|
|
git fetch --all || true
|
|
git reset --hard origin/main || true
|
|
|
|
# Lancer les 2 bots en parallèle
|
|
python -u post_rss_to_ghost.py & PID1=$!
|
|
python -u presquegratos.py & PID2=$!
|
|
|
|
# Attendre que l'un des deux meure (et laisser l'autre se faire tuer par le trap)
|
|
wait -n "$PID1" "$PID2" || true |