cd to a dir owned by $app to prevent permission denied errors

This commit is contained in:
Salamandar 2023-12-11 18:55:49 +01:00 committed by Salamandar
parent 21c82b28c8
commit a77b888115

View file

@ -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"