MT#9567 templates: use www_csc.enable config

Change-Id: Idaaf4e6c8fa5e6bd571ee96dc31f57349e4092d3
changes/99/399/1
Victor Seva 11 years ago
parent 3114b09901
commit 54b4d83393

@ -1,8 +1,11 @@
[% TAGS [- -] -%]
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
[% argv.host=hostname; argv.role='mgmt'; PROCESS '/usr/lib/ngcp-ngcpcfg/has_role'; is_mgmt = out -%]
[% argv.host=hostname; argv.role='mgmt';
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
is_mgmt = out
-%]
[% IF is_mgmt -%]
RUN_DAEMON="yes"
RUN_DAEMON=[% www_csc.enable %]
[% ELSE -%]
RUN_DAEMON="no"
[% END -%]

@ -1,5 +1,5 @@
[% TAGS [- -] -%]
[% IF www_csc.enable == 'yes' -%]
[% IF www_csc.apache.port != 80 && www_admin.apache.port != 80 && ossbss.apache.port != 80 -%]
server {
listen [::]:80 ipv6only=off;
@ -47,3 +47,4 @@ server {
}
[% END -%]
}
[% END -%]

Loading…
Cancel
Save