From 42072cbd92f183c7f69a9b3bd8deb3968146c91f Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 19 Aug 2024 18:40:45 +0200 Subject: [PATCH] define domain var from captive portal url --- scripts/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/config b/scripts/config index 14e1c87..4ca4533 100644 --- a/scripts/config +++ b/scripts/config @@ -199,6 +199,8 @@ ynh_app_config_apply() { # Activate captive portal or not captive_portal=$(ynh_app_setting_get --app=$app --key=captive_portal) + captive_portal_url=$(ynh_app_setting_get --app=$app --key=captive_portal_url) + domain=$(cut -d'/' -f 3 <<< "${captive_portal_url}") if [[ "${captive_portal}" -eq 1 ]]; then ynh_add_nginx_config ynh_systemd_action --service_name=captiveportal_fakedns --action="start" --log_path=systemd