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