From 241d42421242421f07231090d7ea1244cd17f813 Mon Sep 17 00:00:00 2001 From: Mathis Date: Sun, 12 Jul 2026 16:22:24 +0200 Subject: [PATCH] V0.2 de la migration vers systemd --- serveur_flask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serveur_flask.py b/serveur_flask.py index 362548c..59a22ca 100644 --- a/serveur_flask.py +++ b/serveur_flask.py @@ -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):