force fallback to develop if desired branch does not exist

This commit is contained in:
fbsanchez 2022-03-03 14:28:38 +01:00
parent a8d669989f
commit 4ed2d65f21
1 changed files with 2 additions and 1 deletions

View File

@ -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 && \