mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00

* make correct reference to MF_UI_PORT Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com> * remove echo Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
10 lines
262 B
Bash
Executable File
10 lines
262 B
Bash
Executable File
#!/bin/ash
|
|
|
|
if [ -n "$MF_UI_PORT" ]; then
|
|
sed -e "s/MF_UI_PORT/$MF_UI_PORT/" /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
|
|
else
|
|
sed -e "s/MF_UI_PORT/3000/" /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
|
|
fi
|
|
|
|
exec nginx -g "daemon off;"
|