openmambabot: update service and add requirements to run in virtualenv (/var/autodist/env)
This commit is contained in:
parent
ac040bff56
commit
e4fcd8d6cf
1
Makefile
1
Makefile
@ -85,6 +85,7 @@ install-programs:
|
|||||||
@$(INSTALL_SCRIPT) webbuild/webbuild-functions $(DESTDIR)$(pck_datadir)/webbuild-functions
|
@$(INSTALL_SCRIPT) webbuild/webbuild-functions $(DESTDIR)$(pck_datadir)/webbuild-functions
|
||||||
@$(INSTALL_SCRIPT) webbuild/webbuild-functions-private $(DESTDIR)$(pck_datadir)/webbuild-functions-private
|
@$(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/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
|
@$(INSTALL_SCRIPT) repology-openmamba.py $(DESTDIR)$(pck_datadir)/repology-openmamba.py
|
||||||
@cp -a webbuild/html/* $(DESTDIR)$(htmldir)
|
@cp -a webbuild/html/* $(DESTDIR)$(htmldir)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ After=syslog.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
1
telegram/requirements.txt
Normal file
1
telegram/requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
python-telegram-bot~=13.14
|
Loading…
Reference in New Issue
Block a user