source: installer/vagrant/setup-proxy.sh @ f18702f

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 f18702f was f18702f, checked in by Nicolas Arenas <nicolas.arenas@…>, 20 months ago

Fix \r problem

  • Property mode set to 100644
File size: 413 bytes
RevLine 
[152bbe5]1#!/bin/bash
2
3SERVER=$1
4BRANCH=$2
5
6#NGINX docker folder config
7NGINXCONF=/opt/nginx/conf
8DEST=$NGINXCONF/$BRANCH.location
9
[f18702f]10IP=$(vagrant ssh $SERVER -c "ifdata -pa eth0" | tr -d '\r')
[152bbe5]11cp config/nginx-template.location $DEST
12
[6a88999]13echo server IP es $IP
14
[152bbe5]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.