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