1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00

Move pip cache dir

This commit is contained in:
ewilly 2021-11-14 20:59:26 +01:00
parent eb6ebd9491
commit 8e81e71862
3 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

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