From 96d975d9f4b53bee402faee5798e3b52890d922c Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 26 Apr 2014 16:44:47 +0530 Subject: [PATCH] use https protocol in the wget request if https is enabled --- assets/init | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/init b/assets/init index f95b0136..a21f0674 100755 --- a/assets/init +++ b/assets/init @@ -357,8 +357,11 @@ EOF crontab -u git /tmp/cron.git && rm -rf /tmp/cron.git # kickstart the rails application - wget "http://localhost" -O /dev/null - + if [ "${GITLAB_HTTPS}" == "true" ]; then + wget --no-check-certificate "https://${GITLAB_HOST}" -O /dev/null + else + wget "http://${GITLAB_HOST}" -O /dev/null + fi # watch the access logs tail -F /var/log/nginx/gitlab_access.log