From 4ed2d65f21edf8447cfa413aeaf2495b48ad18ae Mon Sep 17 00:00:00 2001
From: fbsanchez <fborja.sanchez@artica.es>
Date: Thu, 3 Mar 2022 14:28:38 +0100
Subject: [PATCH] force fallback to develop if desired branch does not exist

---
 extras/docker/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/extras/docker/Dockerfile b/extras/docker/Dockerfile
index f91fa55d1b..5a06ca782c 100644
--- a/extras/docker/Dockerfile
+++ b/extras/docker/Dockerfile
@@ -5,7 +5,8 @@ ARG BRANCH=develop
 ARG DB_PASS=pandora
 
 # Clone the Pandora FMS repo.
-RUN git clone --depth 1 -b "$BRANCH" https://github.com/pandorafms/pandorafms.git /tmp/pandorafms
+RUN git clone --depth 1 -b "$BRANCH" https://github.com/pandorafms/pandorafms.git /tmp/pandorafms || \
+    git clone --depth 1 https://github.com/pandorafms/pandorafms.git /tmp/pandorafms 
 
 # Install the Pandora FMS Server.
 RUN cd /tmp/pandorafms/pandora_server && \