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:
parent
4e9b836574
commit
ddf951399b
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue