library/roles/smartgears/dataminer_app/templates/wps-config-fixer.j2: Set the provided hostname.

This commit is contained in:
Andrea Dell'Amico 2017-09-12 15:34:18 +02:00
parent e955566e16
commit 02d74065cb
1 changed files with 4 additions and 0 deletions

View File

@ -4,7 +4,11 @@
WPS_CONFIG_FILE='{{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/config/wps_config.xml'
# Fix the hostname
{% if hostname is defined %}
sed -Ei 's/hostname=\".*\"\ hostport/hostname="{{ hostname }}" hostport/' $WPS_CONFIG_FILE
{% else %}
sed -Ei 's/hostname=\".*\"\ hostport/hostname="{{ smartgears_hostname }}" hostport/' $WPS_CONFIG_FILE
{% endif %}
# Fix the port
{%if setup_nginx %}