From f204b62991daa3140da65015e2770a5d58dd0ff0 Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 2 Sep 2022 10:30:46 +0200 Subject: [PATCH 1/2] Fix restore in case on restore on new system (#132) --- scripts/restore | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/restore b/scripts/restore index e838d89..a7a63d7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -124,6 +124,17 @@ ynh_script_progression --message="Restoring the logrotate configuration..." ynh_restore_file --origin_path="/etc/logrotate.d/$app" +#================================================= +# IF NEEDED UPDATE THE PYHTON LINK IN THE VIRUTAL ENV. +#================================================= +ynh_script_progression --message="Updating the pyhton link in the pyhton virtual environment..." + +hass_python_link=$(head -1 /var/www/homeassistant/bin/hass | sed 's/#!//') +if [ ! -e "$hass_python_link" ] ; then + hass_python_new_dest=$(which `basename "$hass_python_link"`) + ln -sfn "$hass_python_new_dest" "$hass_python_link" +fi + #================================================= # SET FILE OWNERSHIP / PERMISSIONS #================================================= From db6924ff776e8d5902c9a9cc3abbf7e64f6b3ce7 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 2 Sep 2022 08:30:56 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 1 + README_fr.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c0091c4..8b3cf0b 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Home automation platform **Shipped version:** 2022.7.7~ynh1 + **Demo:** https://demo.home-assistant.io ## Screenshots diff --git a/README_fr.md b/README_fr.md index 5bb7a54..36e0d65 100644 --- a/README_fr.md +++ b/README_fr.md @@ -17,7 +17,8 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Plateforme domotique -**Version incluse :** 2022.7.7~ynh1 +**Version incluse :** 2022.7.7~ynh1 + **Démo :** https://demo.home-assistant.io