Skip to content
Snippets Groups Projects
Commit ffa342ae authored by Sytse Sijbrandij's avatar Sytse Sijbrandij
Browse files

Prevent the external url from including a double http when it has the default value.

parent 629def0a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -20,9 +20,9 @@ done
# Try collecting fqdn if it is set correctly
fqdn=$(/bin/hostname -f)
if [[ ! -z ${fqdn} ]]; then
external_url=${fqdn}
external_url="http://${fqdn}/"
else
external_url="http://gitlab.example.com"
external_url="http://gitlab.example.com/"
fi
 
# Create a minimal gitlab.rb template if /etc/gitlab/gitlab.rb does not exist.
Loading
Loading
@@ -30,7 +30,7 @@ if ! [ -e /etc/gitlab/gitlab.rb ] ; then
mkdir -p /etc/gitlab
cat > /etc/gitlab/gitlab.rb <<EOF
# Check and change the external_url to the address your users will type in their browser
external_url 'http://${external_url}'
external_url '${external_url}'
EOF
chmod 600 /etc/gitlab/gitlab.rb
fi
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