aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAreli Fuss <af732p@att.com>2017-10-26 15:11:43 +0300
committerAreli Fuss <af732p@att.com>2017-10-26 15:11:43 +0300
commitc69c207baf1159878317dd8f4c37055dfbc8ecbf (patch)
tree33ca055eb7f05bb2d8acc1ca2305ab5c4241ead7
parent25cdb3dea8e221600f9796a6d817e66114afc0c7 (diff)
Add more debug information
Add more debug information to curl Change-Id: Iecbf62aa9558ed57596101291445e9e22788d824 Issue-Id: VVP-25 Signed-off-by: Areli Fuss <af732p@att.com>
-rwxr-xr-xassets/setup28
1 files changed, 21 insertions, 7 deletions
diff --git a/assets/setup b/assets/setup
index ed42fc1..952df6e 100755
--- a/assets/setup
+++ b/assets/setup
@@ -43,20 +43,34 @@ source /RELEASE
# Download & Install GitLab
echo "deb https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/gitlab_${RELEASE_PACKAGE}.list
-#wget -q -O - https://packages.gitlab.com/gpg.key | apt-key add -
+
echo "####################################################"
echo "[DBG] Test connection to https://packages.gitlab.com"
-sleep 3
-curl -s --head https://packages.gitlab.com | head -n 1
-sleep 3
echo "####################################################"
+curl -v --head https://packages.gitlab.com | head -n 1
+
+resault=$?
+
+echo "[DBG] CURL returns - $resault - ."
+
+
+echo "[DBG] Test Just Get the public key"
+
+key=`curl -L https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey`
+
+echo "[DBG] CURL key:"
+
+echo $key
+
echo "####################################################"
-echo "[DBG] Test Get key"
-curl -L https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey | apt-key add -
-echo "####################################################"
+
+
+
+
+wget -q -O - https://packages.gitlab.com/gpg.key | apt-key add -
apt-get update
apt-get install -yq --no-install-recommends ${RELEASE_PACKAGE}=${RELEASE_VERSION}