Skip to content
Snippets Groups Projects
Commit f0ae2e0836fc authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

SSoT for initial root password

parent 88417e4159e2
No related branches found
No related tags found
2 merge requests!109heptapod#1351: making Heptapod 0.41 the new oldstable,!105heptapod#1283: making 0.41 the new stable
......@@ -59,7 +59,12 @@
- Pass the `GITLAB_ROOT_PASSWORD` environment variable to the
[installation command](https://about.gitlab.com/install/) provided
the hostname for the server is set up correctly.
the hostname for the server is set up correctly:
```shell
sudo GITLAB_ROOT_PASSWORD="<strongpassword>" EXTERNAL_URL="http://gitlab.example.com" apt install gitlab-ee
```
If during the installation GitLab doesn't automatically perform a
reconfigure, you have to pass the `GITLAB_ROOT_PASSWORD` variable to the
first `gitlab-ctl reconfigure` run.
......@@ -63,6 +68,7 @@
If during the installation GitLab doesn't automatically perform a
reconfigure, you have to pass the `GITLAB_ROOT_PASSWORD` variable to the
first `gitlab-ctl reconfigure` run.
- Before the first reconfigure, edit `/etc/gitlab/gitlab.rb` (create it if it
doesn't exist) and set:
......
......@@ -693,12 +693,8 @@
## Set initial root password on installation
The initial password for the administrator user `root` can be set at the installation time
with the `GITLAB_ROOT_PASSWORD` environment variable:
```shell
sudo GITLAB_ROOT_PASSWORD="<strongpassword>" EXTERNAL_URL="http://gitlab.example.com" apt install gitlab-ee
```
The initial password for the administrator user `root` can be set at installation time. For more information, see
[Set up the initial password](../installation/index.md#set-up-the-initial-password).
## Set allowed hosts to prevent host header attacks
......
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