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

Fix upgrade

This commit is contained in:
ewilly 2023-06-23 14:36:19 +02:00
parent d2ed6222b8
commit f9246d9e46

View file

@ -145,7 +145,14 @@ myynh_install_homeassistant () {
# Upgrade the virtual environment directory
myynh_upgrade_venv_directory () {
find "$install_dir/bin/" -type l -name 'python*' -exec bash -c 'ynh_secure_remove "$1"' _ {} \;
# Remove old python links before recreating them
for i in `find "$install_dir/bin/" -type l -name 'python*'`
do
ynh_secure_remove --file="$i"
done
# Upgrade the virtual environment directory
ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir"
}