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 #50 from YunoHost-Apps/testing

Upgrade venv directory
This commit is contained in:
ewilly 2022-01-14 09:00:20 +01:00 committed by GitHub
commit 5476539f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -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"

View file

@ -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