From 7127e3b3a1ad693cb5f1d66be9e936c8d5d640d4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 8 Oct 2023 13:05:20 +0200 Subject: [PATCH 1/3] Fix start/restart of the service during config panel operation, we have to use 'yunohost service' otherwise the lock is not transferred --- scripts/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config b/scripts/config index ad92a84..a0a5fc8 100644 --- a/scripts/config +++ b/scripts/config @@ -199,7 +199,7 @@ ynh_app_config_apply() { # Stop vpn client ynh_print_info --message="Stopping hotspot in order to edit files" - systemctl stop ${service_name} + yunohost service stop $service_name _ynh_app_config_apply @@ -209,7 +209,7 @@ ynh_app_config_apply() { # Start hotspot ynh_print_info --message="Starting hotspot service if needed" - systemctl start ${service_name} + yunohost service start $service_name else ynh_print_info --message="Cleanup hotspot config files" ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf" From 638b4674412de6f53baa38d75aaee564fc702baf Mon Sep 17 00:00:00 2001 From: HgO Date: Sat, 14 Oct 2023 10:52:27 +0200 Subject: [PATCH 2/3] allow empty dns field to generate default local dns --- config_panel.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config_panel.toml b/config_panel.toml index 71a9384..b03b3bd 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -103,6 +103,7 @@ name = "Configuration" [main.hotspot.dns] ask = "DNS resolvers" type = "tags" + optional = true visible = "advanced" pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$' pattern.error = "Not an ip" From 29d48e1f0a94b5c8c348317d5b24ae0b1773fc88 Mon Sep 17 00:00:00 2001 From: HgO Date: Sat, 14 Oct 2023 10:55:37 +0200 Subject: [PATCH 3/3] bump version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 369f0f2..0c165f2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Create and manager wifi networks, share Internet access and use YunoHost apps accross wifi", "fr": "Créer et configurer des réseaux wifi, partager l'accès a Internet et utiliser les applications YunoHost via wifi" }, - "version": "2.2.0~ynh1", + "version": "2.2.1~ynh1", "url": "https://github.com/labriqueinternet/hotspot_ynh", "license": "AGPL-3.0", "maintainer": {