|
|
@@ -27,19 +27,11 @@ fi
|
|
|
# exit on error exit codes
|
|
|
set -e
|
|
|
|
|
|
-# Ensure SSH-Agent is started and id_rsa loaded,
|
|
|
-# git and npm will do a lot of stuff via ssh and
|
|
|
-# ask for id passphrase multiple times if there's
|
|
|
-# no agent
|
|
|
-echo "[INSTALL] Starting SSH agent"
|
|
|
-eval $(ssh-agent)
|
|
|
-ssh-add ~/.ssh/id_rsa
|
|
|
-
|
|
|
TMPFOLDER="/tmp/hbbq/monitoring/$(date +'%Y%m%d%H%M%S')"
|
|
|
|
|
|
echo "[INSTALL] Cloning entire project into temp folder $TMPFOLDER"
|
|
|
mkdir -p "$TMPFOLDER"
|
|
|
-git clone ssh://git@gogs.hostbbq.com:8301/hostbbq/hostbbq-monitoring.git "$TMPFOLDER"
|
|
|
+git clone https://gogs.hostbbq.com/hostbbq/hostbbq-monitoring.git "$TMPFOLDER"
|
|
|
|
|
|
cd "$TMPFOLDER/daemon"
|
|
|
|