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

Merge pull request #232 from YunoHost-Apps/testing

Fix upgrade
This commit is contained in:
ewilly 2023-06-23 16:37:51 +02:00 committed by GitHub
commit 82a3aba6f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,6 +145,11 @@ myynh_install_homeassistant () {
# Upgrade the virtual environment directory
myynh_upgrade_venv_directory () {
# Remove old python links before recreating them
find "$install_dir/bin/" -type l -name 'python*' -exec bash -c 'rm -f "$1"' _ {} \;
# Upgrade the virtual environment directory
ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir"
}