V0.2 de la migration vers systemd

This commit is contained in:
Mathis 2026-07-12 16:22:24 +02:00
parent 54c5ef471e
commit 241d424212

View file

@ -86,7 +86,7 @@ def run_mep_logic(author, commit_msg, branch="main"):
subprocess.run(["rsync", "-a", "--exclude=.git", "--exclude=venv", "--exclude=.venv", "--exclude=__pycache__", f"{target_path}/", f"{PROJECT_PATH}/"], check=True)
# 3. Redémarrage via systemd
subprocess.run(["systemctl", "restart", "kuby-bot.service"], check=True, capture_output=True, text=True)
subprocess.run(["sudo", "systemctl", "restart", "kuby-bot.service"], check=True, capture_output=True, text=True)
# 4. Notifier le bot que le déploiement est terminé pour les issues en attente
for attempt in range(6):