diff --git a/scripts/_common.sh b/scripts/_common.sh index d28cfd0..25fb00f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -128,7 +128,7 @@ myynh_install_python () { myynh_install_homeassistant () { ynh_exec_as $app -H -s /bin/bash -c " \ echo 'create the virtual environment' \ - && $py_app_version -m venv --upgrade "$final_path" \ + && $py_app_version -m venv "$final_path" \ && echo 'activate the virtual environment' \ && source "$final_path/bin/activate" \ && echo 'install last version of wheel' \ @@ -140,6 +140,14 @@ myynh_install_homeassistant () { " } +# Upgrade the virtual environment directory +myynh_upgrade_venv_directory () { + ynh_exec_as $app -H -s /bin/bash -c " \ + echo 'Upgrade the virtual environment directory' \ + && $py_app_version -m venv --upgrade "$final_path" \ + " +} + # Set permissions myynh_set_permissions () { chown -R $app: "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 8c58784..8e51c99 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -135,6 +135,7 @@ then ynh_script_progression --message="Upgrading source files..." myynh_install_python --python="$py_required_version" + ynh_exec_fully_quiet myynh_upgrade_venv_directory ynh_exec_fully_quiet myynh_install_homeassistant fi