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

Upgrade venv directory

This commit is contained in:
ewilly 2022-01-13 21:34:59 +01:00
parent b576c2818f
commit adb229a2b5
2 changed files with 10 additions and 1 deletions

View file

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

View file

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