Просмотр исходного кода

Server: Install script - cd into clone dir before submodule checkout

Christian Kahlau 3 лет назад
Родитель
Сommit
95bf18750d
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      server/install/install.sh

+ 4 - 0
server/install/install.sh

@@ -32,6 +32,10 @@ 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 https://gogs.hostbbq.com/hostbbq/hostbbq-monitoring.git "$TMPFOLDER"
+
+cd "$TMPFOLDER"
+
+echo "[INSTALL] Cloning submodules ..."
 git submodule init
 git submodule update