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