mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
cd install_dir before running pip
This commit is contained in:
parent
8a6633e5a3
commit
f5a173962e
1 changed files with 7 additions and 7 deletions
|
@ -51,13 +51,14 @@ chown -R "$app:" "$install_dir"
|
|||
|
||||
#run source in a 'sub shell'
|
||||
(
|
||||
cd "$install_dir"
|
||||
set +o nounset
|
||||
source "${install_dir}/venv/bin/activate"
|
||||
source "venv/bin/activate"
|
||||
set -o nounset
|
||||
ynh_exec_as $app $install_dir/venv/bin/python3 -m ensurepip
|
||||
ynh_exec_as $app $install_dir/venv/bin/pip3 install --upgrade wheel pip setuptools
|
||||
ynh_exec_as $app $install_dir/venv/bin/pip3 install --no-cache-dir --upgrade -r "$install_dir/requirements.txt"
|
||||
ynh_exec_as $app $install_dir/venv/bin/pip3 install --no-cache-dir --upgrade -r "$install_dir/optional-requirements.txt"
|
||||
ynh_exec_as $app venv/bin/python3 -m ensurepip
|
||||
ynh_exec_as $app venv/bin/pip3 install --upgrade wheel pip setuptools
|
||||
ynh_exec_as $app venv/bin/pip3 install --no-cache-dir --upgrade -r "$install_dir/requirements.txt"
|
||||
ynh_exec_as $app venv/bin/pip3 install --no-cache-dir --upgrade -r "$install_dir/optional-requirements.txt"
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
@ -167,4 +168,3 @@ ynh_script_progression --message="Restoration completed for $app" --last
|
|||
# WARNING FOR READ ACCESS
|
||||
#=================================================
|
||||
ynh_print_warn "Please, give required access to $app user to the $calibre_dir folder."
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue