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:
parent
5a9277c653
commit
42072cbd92
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
# Activate captive portal or not
|
# Activate captive portal or not
|
||||||
captive_portal=$(ynh_app_setting_get --app=$app --key=captive_portal)
|
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
|
if [[ "${captive_portal}" -eq 1 ]]; then
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
ynh_systemd_action --service_name=captiveportal_fakedns --action="start" --log_path=systemd
|
ynh_systemd_action --service_name=captiveportal_fakedns --action="start" --log_path=systemd
|
||||||
|
|
Loading…
Add table
Reference in a new issue