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

Search for "mainflux-nginx" instead of "nginx"

Fixes #130 where the script sees non mainflux-nginx container(s) and
assumes mainflux-nginx is already pulled/created.

Signed-off-by: bzub <bzubrod@gmail.com>
This commit is contained in:
bzub 2017-12-14 13:22:07 -06:00
parent b6b997237e
commit c57c9f0a3c

View File

@ -127,7 +127,7 @@ _start() {
# Start Nginx
printf "\nStarting Nginx...\n\n"
NB_DOCKERS=$(docker ps -a -f name=nginx | wc -l)
NB_DOCKERS=$(docker ps -a -f name=mainflux-nginx | wc -l)
if [[ $NB_DOCKERS -lt 2 ]]
then
docker-compose -f docker/docker-compose.nginx.yml pull