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 #361 from YunoHost-Apps/master-promotion
Some checks failed
YunoHost apps package linter / test (push) Has been cancelled
Create master promotion pull request / masterPromotion (push) Has been cancelled

Upgrade master from testing
This commit is contained in:
eric_G 2024-08-08 09:00:27 +02:00 committed by GitHub
commit 0fdd2bc13b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 30 additions and 21 deletions

View file

@ -28,7 +28,7 @@ Home Assistant is an open source home automation that puts local control and pri
- Home Energy Management."
**Shipped version:** 2024.7.4~ynh1
**Shipped version:** 2024.8.0~ynh1
**Demo:** <https://demo.home-assistant.io>

View file

@ -28,7 +28,7 @@ Home Assistant is an open source home automation that puts local control and pri
- Home Energy Management."
**Versión actual:** 2024.7.4~ynh1
**Versión actual:** 2024.8.0~ynh1
**Demo:** <https://demo.home-assistant.io>

View file

@ -28,7 +28,7 @@ Home Assistant is an open source home automation that puts local control and pri
- Home Energy Management."
**Paketatutako bertsioa:** 2024.7.4~ynh1
**Paketatutako bertsioa:** 2024.8.0~ynh1
**Demoa:** <https://demo.home-assistant.io>

View file

@ -27,7 +27,7 @@ Home Assistant zst une application domotique open source qui donne la priorité
- Applications mobiles compagnons ;
- Gestion de l'énergie domestique.
**Version incluse:** 2024.7.4~ynh1
**Version incluse:** 2024.8.0~ynh1
**Démo:** <https://demo.home-assistant.io>

View file

@ -28,7 +28,7 @@ Home Assistant is an open source home automation that puts local control and pri
- Home Energy Management."
**Versión proporcionada:** 2024.7.4~ynh1
**Versión proporcionada:** 2024.8.0~ynh1
**Demo:** <https://demo.home-assistant.io>

View file

@ -28,7 +28,7 @@ Home Assistant is an open source home automation that puts local control and pri
- Home Energy Management."
**Versi terkirim:** 2024.7.4~ynh1
**Versi terkirim:** 2024.8.0~ynh1
**Demo:** <https://demo.home-assistant.io>

View file

@ -28,7 +28,7 @@ Home Assistant is an open source home automation that puts local control and pri
- Home Energy Management."
**分发版本:** 2024.7.4~ynh1
**分发版本:** 2024.8.0~ynh1
**演示:** <https://demo.home-assistant.io>

View file

@ -5,7 +5,7 @@ name = "Home Assistant"
description.en = "Home automation platform"
description.fr = "Plateforme domotique"
version = "2024.7.4~ynh1"
version = "2024.8.0~ynh1"
maintainers = ["ewilly"]
@ -80,8 +80,8 @@ ram.runtime = "2G"
[resources.sources]
[resources.sources.main]
url = "https://github.com/home-assistant/core/archive/refs/tags/2024.7.4.tar.gz"
sha256 = "16d00a28fa476153fd0bc699c17b88d3d9b329093b9c91475a72b300fe5342a0"
url = "https://github.com/home-assistant/core/archive/refs/tags/2024.8.0.tar.gz"
sha256 = "988dca5a404f7aa8609c5b4896eb607c95919cfc4cf11ac179b51b3e3fde7ae5"
autoupdate.strategy = "latest_github_release"

View file

@ -160,16 +160,25 @@ myynh_install_homeassistant () {
myynh_upgrade_venv_directory () {
# Remove old python links before recreating them
find "$install_dir/bin/" -type l -name 'python*' \
-exec bash -c 'rm --force "$1"' _ {} \;
if [ -e "$install_dir/bin/" ]
then
find "$install_dir/bin/" -type l -name 'python*' \
-exec bash -c 'rm --force "$1"' _ {} \;
fi
# Remove old python directories before recreating them
find "$install_dir/lib/" -mindepth 1 -maxdepth 1 -type d -name "python*" \
-not -path "*/python${py_required_version%.*}" \
-exec bash -c 'rm --force --recursive "$1"' _ {} \;
find "$install_dir/include/site/" -mindepth 1 -maxdepth 1 -type d -name "python*" \
-not -path "*/python${py_required_version%.*}" \
-exec bash -c 'rm --force --recursive "$1"' _ {} \;
if [ -e "$install_dir/lib/" ]
then
find "$install_dir/lib/" -mindepth 1 -maxdepth 1 -type d -name "python*" \
-not -path "*/python${py_required_version%.*}" \
-exec bash -c 'rm --force --recursive "$1"' _ {} \;
fi
if [ -e "$install_dir/include/site/" ]
then
find "$install_dir/include/site/" -mindepth 1 -maxdepth 1 -type d -name "python*" \
-not -path "*/python${py_required_version%.*}" \
-exec bash -c 'rm --force --recursive "$1"' _ {} \;
fi
# Upgrade the virtual environment directory
ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir"
@ -184,11 +193,11 @@ myynh_set_permissions () {
chown -R $app: "$data_dir"
chmod 750 "$data_dir"
chmod -R o-rwx "$data_dir"
[ ! -e "$data_dir/bin/" ] || chmod -R +x "$data_dir/bin/"
[ -e "$data_dir/bin/" ] && chmod -R +x "$data_dir/bin/"
[ ! -e "$(dirname "$log_file")" ] || chown -R $app: "$(dirname "$log_file")"
[ -e "$(dirname "$log_file")" ] && chown -R $app: "$(dirname "$log_file")"
[ ! -e "/etc/sudoers.d/$app" ] || chown -R root: "/etc/sudoers.d/$app"
[ -e "/etc/sudoers.d/$app" ] && chown -R root: "/etc/sudoers.d/$app"
# Upgade user groups
user_groups=""