Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
09e64ae6
Commit
09e64ae6
authored
10 years ago
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an option to supply root password through an environmental variable.
parent
d7ab859b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
db/fixtures/production/001_admin.rb
db/fixtures/production/001_admin.rb
+9
-3
doc/install/installation.md
doc/install/installation.md
+4
-0
No files found.
db/fixtures/production/001_admin.rb
View file @
09e64ae6
password
=
if
ENV
[
'GITLAB_ROOT_PASSWORD'
].
nil?
||
ENV
[
'GITLAB_ROOT_PASSWORD'
].
empty?
"5iveL!fe"
else
ENV
[
'GITLAB_ROOT_PASSWORD'
]
end
admin
=
User
.
create
(
admin
=
User
.
create
(
email:
"admin@example.com"
,
email:
"admin@example.com"
,
name:
"Administrator"
,
name:
"Administrator"
,
username:
'root'
,
username:
'root'
,
password:
"5iveL!fe"
,
password:
password
,
password_confirmation:
"5iveL!fe"
,
password_confirmation:
password
,
password_expires_at:
Time
.
now
,
password_expires_at:
Time
.
now
,
theme_id:
Gitlab
::
Theme
::
MARS
theme_id:
Gitlab
::
Theme
::
MARS
...
@@ -19,6 +25,6 @@ puts %q[
...
@@ -19,6 +25,6 @@ puts %q[
Administrator account created:
Administrator account created:
login.........root
login.........root
password......
5iveL!fe
password......
#{password}
]
]
end
end
This diff is collapsed.
Click to expand it.
doc/install/installation.md
View file @
09e64ae6
...
@@ -244,6 +244,10 @@ GitLab Shell is an SSH access and repository management software developed speci
...
@@ -244,6 +244,10 @@ GitLab Shell is an SSH access and repository management software developed speci
# When done you see 'Administrator account created:'
# When done you see 'Administrator account created:'
**Note:**
You can set the Administrator password by supplying it in environmental variable
`GITLAB_ROOT_PASSWORD`
, eg.:
sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD=newpassword
### Install Init Script
### Install Init Script
Download the init script (will be
`/etc/init.d/gitlab`
):
Download the init script (will be
`/etc/init.d/gitlab`
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment