use https protocol in the wget request if https is enabled

This commit is contained in:
Sameer Naik 2014-04-26 16:44:47 +05:30
parent 296a6ad027
commit 96d975d9f4

View File

@ -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