mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-02 22:17:10 +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
218 B
Bash
Executable File
10 lines
218 B
Bash
Executable File
#!/bin/ash
|
|
|
|
if [ -n "$MF_UI_PORT" ]; then
|
|
sed -i -e "s/MF_UI_PORT/$MF_UI_PORT/" /etc/nginx/conf.d/default.conf
|
|
else
|
|
sed -i -e "s/MF_UI_PORT/3000/" /etc/nginx/conf.d/default.conf
|
|
fi
|
|
|
|
exec nginx -g "daemon off;"
|