V0.1 de la migration vers systemd

This commit is contained in:
Mathis 2026-07-12 15:01:47 +02:00
parent b23c0dde53
commit 016ac85bc7
9 changed files with 142 additions and 24 deletions

16
scripts/run_kuby_bot.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
export PYTHONUNBUFFERED=1
if [ -x "$ROOT_DIR/.venv/bin/python" ]; then
exec "$ROOT_DIR/.venv/bin/python" "$ROOT_DIR/kuby.py"
elif command -v python3 >/dev/null 2>&1; then
exec python3 "$ROOT_DIR/kuby.py"
else
echo "python3 introuvable" >&2
exit 1
fi