Add clone_formulas script

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-21 19:47:10 +01:00
parent 50c638a000
commit 7f9bf11048
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

12
bin/clone_formulas.sh Executable file
View File

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