mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Merge pull request #50 from YunoHost-Apps/testing
Upgrade venv directory
This commit is contained in:
commit
5476539f24
2 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue