From 8e81e7186275d74a15d2418d542e038e65f8af0e Mon Sep 17 00:00:00 2001 From: ewilly Date: Sun, 14 Nov 2021 20:59:26 +0100 Subject: [PATCH] Move pip cache dir --- scripts/_common.sh | 6 +++--- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 2fdec76..7733e21 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -132,11 +132,11 @@ myynh_install_homeassistant () { && echo 'activate the virtual environment' \ && source "$final_path/bin/activate" \ && echo 'install last version of pip' \ - && pip install --upgrade pip \ + && pip --cache-dir $1 install --upgrade pip \ && echo 'install last version of wheel' \ - && pip install --upgrade wheel \ + && pip --cache-dir $1 install --upgrade wheel \ && echo 'install Home Assistant' \ - && pip install --upgrade $app==$VERSION \ + && pip --cache-dir $1 install --upgrade $app==$VERSION \ " } diff --git a/scripts/install b/scripts/install index 288f1c4..40de0b3 100644 --- a/scripts/install +++ b/scripts/install @@ -52,7 +52,7 @@ myynh_install_dependencies --python="$PY_REQUIRED_VERSION" # installation in a virtual environment ynh_script_progression --message="Installing Home Assistant in a virtual environment..." -myynh_install_homeassistant +myynh_install_homeassistant "$home_path" # set default configuration files and move all homeassistant_conf_files ynh_script_progression --message="Configuring the installation..." diff --git a/scripts/upgrade b/scripts/upgrade index 2fce8c2..54508e3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,7 +50,7 @@ ynh_systemd_action --service_name="$app@$app" --action=stop # installation in a virtual environment ynh_script_progression --message="Installing Home Assistant in a virtual environment..." -myynh_install_homeassistant +myynh_install_homeassistant "$home_path" # move $home_path to new directory if [ -d "$home_path" ] ; then