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):