Skip to content

Commit 41e6328

Browse files
sainijitbharagha
andauthored
setup issues fix (open-edge-platform#810)
Co-authored-by: Raghu Bhat <raghavendra.bhat@intel.com>
1 parent 05658ec commit 41e6328

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

metro-ai-suite/smart-nvr/setup.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,16 @@ start_services() {
148148

149149
print_info "Starting Docker Compose services..."
150150
# Run the Docker Compose stack with all services
151-
docker compose -f docker/compose.yaml up -d
152-
sleep 5
153-
print_success "Services are starting up..."
154-
print_info "UI will be available at: ${CYAN}http://${HOST_IP}:7860${NC}"
151+
docker compose -f docker/compose.yaml up -d
152+
if [ $? -eq 0 ]; then
153+
sleep 5
154+
print_success "Services are starting up..."
155+
print_info "UI will be available at: ${CYAN}http://${HOST_IP}:7860${NC}"
156+
else
157+
print_error "Docker Compose failed to start services."
158+
exit 1
159+
fi
160+
155161
}
156162

157163
# Function to stop the services

0 commit comments

Comments
 (0)