From b6f6c555ef89f9a79de3372639205aae2c37a888 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 7 Feb 2024 14:14:59 +0100 Subject: [PATCH] install.sh aktualisiert --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 13c16a7..86eb8fa 100644 --- a/install.sh +++ b/install.sh @@ -25,7 +25,12 @@ cd $(hostname -s)-git for playbook in $PLAYBOOKS do - git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git + if [ -z "${GITSRVURL}" ] + then + git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git# + else + git clone ${GITSRVURL}/server-$(hostname -s).git + fi [ -s /etc/dohardening ] || rm -f ${playbook}/hardening.yml if ls ${playbook}/*ansible*.yml >/dev/null 2>&1 then