1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

define domain var from captive portal url

This commit is contained in:
HgO 2024-08-19 18:40:45 +02:00
parent 5a9277c653
commit 42072cbd92

View file

@ -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