update docker
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
trap 'echo "[stop] shutting down..."; kill 0' SIGINT SIGTERM
|
||||
|
||||
git fetch --all || true
|
||||
git reset --hard origin/main || true
|
||||
|
||||
# Pull the latest changes
|
||||
git fetch --all
|
||||
git reset --hard origin/main
|
||||
# Lancer les 2 bots en parallèle
|
||||
python -u post_rss_to_ghost.py & PID1=$!
|
||||
python -u presquegratos.py & PID2=$!
|
||||
|
||||
# Run your Python script
|
||||
python post_rss_to_ghost.py
|
||||
# Attendre que l'un des deux meure (et laisser l'autre se faire tuer par le trap)
|
||||
wait -n "$PID1" "$PID2" || true
|
||||
Reference in New Issue
Block a user