openmambabot: update service and add requirements to run in virtualenv (/var/autodist/env)

This commit is contained in:
Silvan Calarco 2022-10-02 14:56:26 +02:00
parent ac040bff56
commit e4fcd8d6cf
3 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,7 @@ install-programs:
@$(INSTALL_SCRIPT) webbuild/webbuild-functions $(DESTDIR)$(pck_datadir)/webbuild-functions
@$(INSTALL_SCRIPT) webbuild/webbuild-functions-private $(DESTDIR)$(pck_datadir)/webbuild-functions-private
@$(INSTALL_SCRIPT) telegram/openmamba_bot.py $(DESTDIR)$(pck_datadir)/openmamba_bot.py
@$(INSTALL_SCRIPT) telegram/requirements.txt $(DESTDIR)$(pck_datadir)/requirements.txt
@$(INSTALL_SCRIPT) repology-openmamba.py $(DESTDIR)$(pck_datadir)/repology-openmamba.py
@cp -a webbuild/html/* $(DESTDIR)$(htmldir)

View File

@ -4,7 +4,7 @@ After=syslog.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /usr/share/autodist/openmamba_bot.py
ExecStart=/var/autodist/env/bin/python3 /usr/share/autodist/openmamba_bot.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
python-telegram-bot~=13.14