1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-02 22:17:10 +08:00
Mainflux.mainflux/ui/docker/entrypoint.sh
Mirko Teodorovic 8efcaee350 NOISSUE - make correct reference to MF_UI_PORT (#804)
* 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>
2019-07-24 12:44:39 +02:00

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;"