diff --git a/README.md b/README.md index 602c0d1..f2d0c6a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_fr.md b/README_fr.md index 1cf1ac1..20c49c3 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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 diff --git a/manifest.toml b/manifest.toml index 5a9460e..08fd2a4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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"] diff --git a/scripts/_common.sh b/scripts/_common.sh index 17d4f5f..fbec92f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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.* \(\).* Requested URL: ./auth/.*" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index df45cc7..b0810b1 100644 --- a/scripts/install +++ b/scripts/install @@ -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 " +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" diff --git a/scripts/upgrade b/scripts/upgrade index ca76d40..d0527c2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 " +ynh_add_fail2ban_config --logpath="$log_file" --failregex="$failregex" #================================================= # RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS, ...)