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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
09e64ae6
Commit
09e64ae6
authored
Sep 11, 2014
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
(
email:
"admin@example.com"
,
name:
"Administrator"
,
username:
'root'
,
password:
"5iveL!fe"
,
password_confirmation:
"5iveL!fe"
,
password:
password
,
password_confirmation:
password
,
password_expires_at:
Time
.
now
,
theme_id:
Gitlab
::
Theme
::
MARS
...
...
@@ -19,6 +25,6 @@ puts %q[
Administrator account created:
login.........root
password......
5iveL!fe
password......
#{password}
]
end
doc/install/installation.md
View file @
09e64ae6
...
...
@@ -244,6 +244,10 @@ GitLab Shell is an SSH access and repository management software developed speci
# 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
Download the init script (will be
`/etc/init.d/gitlab`
):
...
...
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