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

Testing
This commit is contained in:
ewilly 2022-09-02 14:36:25 +00:00 committed by GitHub
commit 6a277f38fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View file

@ -19,6 +19,7 @@ Home automation platform
**Shipped version:** 2022.7.7~ynh1 **Shipped version:** 2022.7.7~ynh1
**Demo:** https://demo.home-assistant.io **Demo:** https://demo.home-assistant.io
## Screenshots ## Screenshots

View file

@ -17,7 +17,8 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Plateforme domotique Plateforme domotique
**Version incluse :** 2022.7.7~ynh1 **Version incluse :** 2022.7.7~ynh1
**Démo :** https://demo.home-assistant.io **Démo :** https://demo.home-assistant.io

View file

@ -124,6 +124,17 @@ ynh_script_progression --message="Restoring the logrotate configuration..."
ynh_restore_file --origin_path="/etc/logrotate.d/$app" 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 # SET FILE OWNERSHIP / PERMISSIONS
#================================================= #=================================================