mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
commit
9952ab4d51
6 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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, ...)
|
||||
|
|
Loading…
Reference in a new issue