source: installer/vagrant/setup-proxy.sh @ 19e3ffc

configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 19e3ffc was 19e3ffc, checked in by Natalia Serrano <natalia.serrano@…>, 15 months ago

refs #162 debug esxi

  • Property mode set to 100644
File size: 453 bytes
Line 
1#!/bin/bash
2
3set -eu
4
5SERVER=$1
6BRANCH=$2
7
8#NGINX docker folder config
9NGINXCONF=/opt/nginx/conf
10DEST=$NGINXCONF/$BRANCH.location
11
12IP=$(vagrant ssh $SERVER -c "ifdata -pa eth0" | tr -d '\r')
13IP=$(echo "${IP//[$'\t\r\n']}")
14cp config/nginx-template.location $DEST
15
16echo server IP es $IP
17
18# Configure proxy
19sed -i "s/##IPADDRESS##/$IP/g" $DEST
20sed -i "s/##BRANCH##/$BRANCH/g" $DEST
21
22# Reload nginx
23
24docker exec nginx_reverse_proxy  nginx -s reload
25
26
27
28
Note: See TracBrowser for help on using the repository browser.