From 7f9bf110488dde7113d685b2d0361fa55b003560 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sat, 21 Jan 2023 19:47:10 +0100 Subject: Add clone_formulas script Signed-off-by: Georg Pfuetzenreuter --- bin/clone_formulas.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/clone_formulas.sh diff --git a/bin/clone_formulas.sh b/bin/clone_formulas.sh new file mode 100755 index 0000000..e6f9e56 --- /dev/null +++ b/bin/clone_formulas.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -Ceu + +FORMULASDIR='/srv/formulas' + +if [ ! -d "$FORMULASDIR" ] +then + git clone --recurse-submodules --single-branch -b production https://git.com.de/LibertaCasa/salt-formulas.git "$FORMULASDIR" + exit "$?" +fi + +git -C "$FORMULASDIR" pull --recurse-submodules -- cgit v1.2.3