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

rename ynh add / remove nginx config

This commit is contained in:
HgO 2024-08-19 18:07:30 +02:00
parent 8015e9a8da
commit 5a9277c653

View file

@ -200,10 +200,10 @@ 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)
if [[ "${captive_portal}" -eq 1 ]]; then if [[ "${captive_portal}" -eq 1 ]]; then
ynh_config_add_nginx 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
else else
ynh_config_remove_nginx ynh_remove_nginx_config
ynh_systemd_action --service_name=captiveportal_fakedns --action="stop" --log_path=systemd ynh_systemd_action --service_name=captiveportal_fakedns --action="stop" --log_path=systemd
fi fi