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

Update upgrade_homeassistant.sh

This commit is contained in:
ewilly 2022-01-20 20:55:09 +01:00 committed by GitHub
parent 4e9b836574
commit ddf951399b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,10 +42,10 @@ fi
# Check User and permissions
[ ! -z "$DEBUG" ] && log "User '$(whoami)' is running that script and '$(has_sudo)'."
# create the virtual environment
# upgrade the virtual environment
MY_PYTHON=$(readlink -e "$final_path/bin/python")
[ ! -z "$DEBUG" ] && log "Using pyhton '$MY_PYTHON'."
$MY_PYTHON -m venv "$final_path"
$MY_PYTHON -m venv --upgrade "$final_path"
# activate the virtual environment
source "$final_path/bin/activate"
@ -53,6 +53,9 @@ source "$final_path/bin/activate"
# install last version of wheel
pip --cache-dir "$data_path/.cache" install --upgrade wheel
# install last version of mysqlclient
pip --cache-dir "$data_path/.cache" install --upgrade mysqlclient
# upgrade homeassistant python package
pip --cache-dir "$data_path/.cache" install --upgrade $app