Closed
Description
Describe the bug
Running fresh-start.sh and giving a network name containing an underscore (_) results in the network name being written to .env without the underscore.
To Reproduce
Steps to reproduce the behavior:
- Run fresh-start.sh
- Give a network name containing an underscore, tested with cfsi_cfsi
- Generated .env file has NETWORK=cfsicfsi, should be cfsi_cfsi
Expected behavior
Write network name to .env file as given by the user in fresh_start.sh.
Server info (please complete the following information):
- Linux release: Ubuntu 20.04
- Server type: AWS EC2 c5a.16xlarge
- Docker version: 19.03.8
- docker-compose version: 1.25
Logs (please send some logs):
proxy-web-auto | <> - - [14/Apr/2021:09:41:03 +0000] "GET / HTTP/2.0" 502 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.116 Safari/537.36"
proxy-web-auto | 2021/04/14 09:41:03 [error] 220#220: *1 no live upstreams while connecting to upstream, client: <>, server: <>, request: "GET / HTTP/2.0", upstream: "http://<>/", host: "<>"
proxy-web-auto | 2021/04/14 09:41:04 [error] 220#220: *1 no live upstreams while connecting to upstream, client: 91.155.152.122, server: <>, request: "GET /favicon.ico HTTP/2.0", upstream: "<>/favicon.ico", host: "<>", referrer: "https://<>/"
proxy-web-auto | <> - - [14/Apr/2021:09:41:04 +0000] "GET /favicon.ico HTTP/2.0" 502 559 "https://<>/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.116 Safari/537.36"
Additional context
Everything works as expected after correcting the network name in .env and running docker-compose down && docker-compose up -d
.