mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
cd to a dir owned by $app to prevent permission denied errors
This commit is contained in:
parent
21c82b28c8
commit
a77b888115
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ myynh_setup_python_venv() {
|
|||
source "$data_dir/venv/bin/activate"
|
||||
set -o nounset
|
||||
set -x
|
||||
cd "$data_dir"
|
||||
ynh_exec_as $app $data_dir/venv/bin/python3 -m ensurepip
|
||||
ynh_exec_as $app $data_dir/venv/bin/pip3 install --upgrade wheel pip setuptools
|
||||
ynh_exec_as $app $data_dir/venv/bin/pip3 install --no-deps -r "$data_dir/requirements.txt"
|
||||
|
|
Loading…
Reference in a new issue