Skip to content
Snippets Groups Projects
Verified Commit 21ceb093 authored by Mario Oenning's avatar Mario Oenning
Browse files

fix: run aurweb ssh commands and git scripts in virtualenv


Adjust bash wrapper scripts to activate our python virtualenv:
Script execution is triggered from ssh / git.
These wrapper scripts then call python scripts created by poetry.

We should make sure that this happens within our venv.

Previously this was done by using "poetry run...".
However, using poetry is costly and adds some delay.
Instead of using poetry, we can just activate our venv
and then execute our scripts.

Fixes: b15ac838 ("aurweb: Make SSH faster by avoiding slow Poetry (~2,5 sec faster)")

Signed-off-by: default avatarmoson-mo <mo-son@mailbox.org>
parent 67de2b54
No related branches found
No related tags found
1 merge request!733fix: run aurweb ssh commands and git scripts in virtualenv
#!/bin/bash
exec "{{ aurweb_dir }}/.venv/bin/aurweb-git-auth" "$@"
cd "{{ aurweb_dir }}"
source .venv/bin/activate
exec aurweb-git-auth "$@"
#!/bin/bash
exec "{{ aurweb_dir }}/.venv/bin/aurweb-git-serve" "$@"
cd "{{ aurweb_dir }}"
source .venv/bin/activate
exec aurweb-git-serve "$@"
#!/bin/bash
cd "{{ aurweb_dir }}"
exec poetry run aurweb-git-update "$@"
source .venv/bin/activate
exec aurweb-git-update "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment