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

Testing
This commit is contained in:
ewilly 2023-04-08 23:40:54 +02:00 committed by GitHub
commit 9952ab4d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 7 deletions

View file

@ -29,7 +29,7 @@ Open source home automation that puts local control and privacy first. Powered b
- Home Energy Management."
**Shipped version:** 2023.3.6~ynh1
**Shipped version:** 2023.4.1~ynh1
**Demo:** https://demo.home-assistant.io

View file

@ -29,7 +29,7 @@ Open source home automation that puts local control and privacy first. Powered b
- Home Energy Management."
**Version incluse :** 2023.3.6~ynh1
**Version incluse :** 2023.4.1~ynh1
**Démo :** https://demo.home-assistant.io

View file

@ -5,7 +5,7 @@ name = "Home Assistant"
description.en = "Home automation platform"
description.fr = "Plateforme domotique"
version = "2023.3.6~ynh1"
version = "2023.4.1~ynh1"
maintainers = ["ewilly"]

View file

@ -5,12 +5,15 @@
#=================================================
# Release to install
app_version=2023.3.6
app_version=2023.4.1
# Requirements
py_required_version=3.10.10
py_required_version=3.10.11
pip_required="pip (<23.1,>=21.0)"
# Fail2ban
failregex="^%(__prefix_line)s.*\[homeassistant.components.http.ban\] Login attempt or request with invalid authentication from.* \(<HOST>\).* Requested URL: ./auth/.*"
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -65,7 +65,7 @@ yunohost service add $app --description="Home Assistant server" --log="$log_file
ynh_use_logrotate --logfile="$log_file"
# Create a dedicated Fail2Ban config
ynh_add_fail2ban_config --logpath="$log_file" --failregex="Login attempt or request with invalid authentication from <HOST>"
ynh_add_fail2ban_config --logpath="$log_file" --failregex="$failregex"
# Grant sudo permissions to the user to manage his own systemd service
myynh_create_dir "/etc/sudoers.d"

View file

@ -49,7 +49,7 @@ yunohost service add $app --description="Home Assistant server" --log="$log_file
ynh_use_logrotate --logfile="$log_file" --non-append
ynh_add_fail2ban_config --logpath="$log_file" --failregex="Login attempt or request with invalid authentication from <HOST>"
ynh_add_fail2ban_config --logpath="$log_file" --failregex="$failregex"
#=================================================
# RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS, ...)