source: installer/vagrant/setup-proxy.sh @ 6a88999

configure-oglivelgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change on this file since 6a88999 was 6a88999, checked in by Nicolas Arenas <nicolas.arenas@…>, 20 months ago

Add some debug

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