Skip to content
Snippets Groups Projects
Commit ae8fcf09 authored by DJ Mountney's avatar DJ Mountney
Browse files

Merge branch '5018-external-url-ec2' into 'master'

Fetch external URL from EC2 only on fresh installations

Closes #5018

See merge request gitlab-org/omnibus-gitlab!3878
parents 897f5411 7493a90f
No related branches found
No related tags found
No related merge requests found
---
title: Fetch external URL from EC2 only on fresh installations
merge_request: 3878
author:
type: fixed
Loading
Loading
@@ -38,9 +38,14 @@ set_protocol()
}
 
if [ -z "${EXTERNAL_URL}" ]; then
check_if_ec2
if [ $? -eq 0 ] ; then
get_details_from_ec2
# Grab address from EC2 only if this is first installation. For upgrades,
# EXTERNAL_URL env variable is the only thing that may define external URL
# other than what is in gitlab.rb
if ! [ -e /etc/gitlab/gitlab.rb ] ; then
check_if_ec2
if [ $? -eq 0 ] ; then
get_details_from_ec2
fi
fi
else
set_protocol
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment