Skip to content

Improve postinstall script

Marin Jankovski requested to merge improve_postinstall_script into master

Improvements proposed here will:

  1. Check if the instance is EC2 and if yes query for public hostname
  2. If gitlab.rb already exists, read the external url set there and print that in the postinst message

Postinst message also got updated a bit to make commands easier to copy and separate from comments:

gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://ec2-54-157-26-185.compute-1.amazonaws.com
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab:
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab:
gitlab:
gitlab: If you just upgraded from GitLab 7.9 or earlier, please run the following
gitlab: command:

sudo ln -sf   /opt/gitlab/bin/gitlab-ctl   /opt/gitlab/bin/gitlab-rake   /opt/gitlab/bin/gitlab-rails   /opt/gitlab/bin/gitlab-ci-rake   /opt/gitlab/bin/gitlab-ci-rails  /usr/bin/

gitlab:

Fixes #520 (closed) Fixes #521 (closed)

Merge request reports