From a77b888115e44b48de1efd64c066d8e946feb664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 11 Dec 2023 18:55:49 +0100 Subject: [PATCH] cd to a dir owned by $app to prevent permission denied errors --- scripts/_common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8f1b84e..6b43d82 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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"