From 45470bc30725b91df88376a70fc3cf5e68b1ed54 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 14 Feb 2022 22:47:07 +0100 Subject: [PATCH] Telegram: Parts of installation machinery --- telegram/Makefile | 10 ++++++++++ telegram/{test.py => burrow-telegraf.py} | 0 2 files changed, 10 insertions(+) create mode 100644 telegram/Makefile rename telegram/{test.py => burrow-telegraf.py} (100%) diff --git a/telegram/Makefile b/telegram/Makefile new file mode 100644 index 0000000..2b01e2b --- /dev/null +++ b/telegram/Makefile @@ -0,0 +1,10 @@ +VENV=/usr/local/lib/burrow-venv + +all: + +install: + [ -d $(VENV) ] || su -c "python3 -m venv $(VENV)" + su -c ". $(VENV)/bin/activate && pip install -r requirements.txt" + su -c "install -m 755 burrow-telegraf.py $(VENV)/bin/burrow-telegraf" + +.PHONY: all install diff --git a/telegram/test.py b/telegram/burrow-telegraf.py similarity index 100% rename from telegram/test.py rename to telegram/burrow-telegraf.py -- 2.39.2