From ee97dd4f516d137cceb22308582ecf8e30c4933f Mon Sep 17 00:00:00 2001 From: Antoine BOSSY Date: Sat, 25 Feb 2023 08:29:56 +0100 Subject: [PATCH 1/5] Allow systemd service to connect to bluetooth addresses. Fixes #16. --- conf/systemd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 9d04cef..b1d2abe 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -21,7 +21,7 @@ NoNewPrivileges=yes PrivateTmp=yes #Private device restrict access to device in /dev/, so to any devices like razberry, zigate, etc. #PrivateDevices=yes -RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 +RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_BLUETOOTH RestrictNamespaces=yes RestrictRealtime=yes #Same : restrict access to devices From 8d5f76eea4e065618d367400e74a0cfcf0b936e4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 27 Feb 2023 20:51:59 +0000 Subject: [PATCH 2/5] Auto-update README --- README.md | 3 ++- README_fr.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c466a4f..7f0f56e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Domoticz for YunoHost -[![Integration level](https://dash.yunohost.org/integration/domoticz.svg)](https://dash.yunohost.org/appci/app/domoticz) ![Working status](https://ci-apps.yunohost.org/ci/badges/domoticz.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/domoticz.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/domoticz.svg)](https://dash.yunohost.org/appci/app/domoticz) ![Working status](https://ci-apps.yunohost.org/ci/badges/domoticz.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/domoticz.maintain.svg) + [![Install Domoticz with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=domoticz) *[Lire ce readme en français.](./README_fr.md)* diff --git a/README_fr.md b/README_fr.md index 9cdde37..db2d3bd 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Domoticz pour YunoHost -[![Niveau d’intégration](https://dash.yunohost.org/integration/domoticz.svg)](https://dash.yunohost.org/appci/app/domoticz) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/domoticz.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/domoticz.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/domoticz.svg)](https://dash.yunohost.org/appci/app/domoticz) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/domoticz.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/domoticz.maintain.svg) + [![Installer Domoticz avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=domoticz) *[Read this readme in english.](./README.md)* From a166d57acb5d2761cce9274fb74180278f0091cc Mon Sep 17 00:00:00 2001 From: Krakinou Date: Mon, 7 Aug 2023 22:25:26 +0200 Subject: [PATCH 3/5] auth_header=false --- scripts/install | 4 ++++ scripts/upgrade | 3 +++ 2 files changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 23e8a5f..329b42e 100755 --- a/scripts/install +++ b/scripts/install @@ -257,8 +257,12 @@ then # Everyone can access the app. # The "main" permission is automatically created before the install script. ynh_permission_update --permission="main" --add="visitors" + fi +#remove the authentication header preventing login from 2023.2 and 11.2.3 onward +ynh_permission_url --permission="main" --auth_header=false + #API & MQTT should stay publicly accessible. ynh_permission_create --permission="domoticz_API" --label="api" --url="$domain$api_path" --allowed="visitors" --show_tile="false" --protected="true" [[ ! -z "$mqtt_domain" ]] && ynh_permission_create --permission="domoticz_MQTT" --label="MQTT" --url="$mqtt_domain" --allowed="visitors" --show_tile="false" --protected="true" diff --git a/scripts/upgrade b/scripts/upgrade index f2c0390..aaf89e4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,6 +152,9 @@ if [ -d "/var/log/$app/$app" ]; then ynh_secure_remove "/var/log/$app/$app" fi +#remove the authentication header preventing login from 2023.2 and 11.2.3 onward +ynh_permission_url --permission="main" --auth_header=false + #================================================= # CREATE DEDICATED USER #================================================= From acb52f36ab94223ce317f7c6d63d11c96b72a437 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Mon, 7 Aug 2023 22:25:40 +0200 Subject: [PATCH 4/5] bump ynh8 --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 47e5938..e4c7b96 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Home automation system that lets you monitor and configure miscellaneous devices", "fr": "Logiciel de domotique qui vous permet de configurer un grand nombre d'appareils" }, - "version": "2020.2~ynh7", + "version": "2020.2~ynh8", "url": "https://www.domoticz.com", "upstream": { "license": "GPL-3.0-or-later", From ebf91be7611f90801a6ec280dc19f4cbaca8d325 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 7 Aug 2023 20:25:44 +0000 Subject: [PATCH 5/5] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f0f56e..40a1b9b 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ allow ::/1; This will authorized only IPv4 within local network to access your domoticz API. You may add individual IPv6 address in the same way. -**Shipped version:** 2020.2~ynh7 +**Shipped version:** 2020.2~ynh8 ## Disclaimers / important information diff --git a/README_fr.md b/README_fr.md index db2d3bd..236c72b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -127,7 +127,7 @@ Ceci autorisera seulement les adresses IPv4 local a accéder aux API de domoticz Vous pouvez ajouter des adresses IPv6 de la même façon. -**Version incluse :** 2020.2~ynh7 +**Version incluse :** 2020.2~ynh8 ## Avertissements / informations importantes