Commit 9e06ec3a authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Add option to disable printing of root password during DB seeding

Changelog: added
Signed-off-by: default avatarBalasankar "Balu" C <balasankar@gitlab.com>
parent 7535be32
...@@ -170,6 +170,9 @@ production: &base ...@@ -170,6 +170,9 @@ production: &base
## Application settings cache expiry in seconds (default: 60) ## Application settings cache expiry in seconds (default: 60)
# application_settings_cache_seconds: 60 # application_settings_cache_seconds: 60
## Print initial root password to stdout during initialization (default: true)
# display_initial_root_password: true
## Reply by email ## Reply by email
# Allow users to comment on issues and merge requests by replying to notification emails. # Allow users to comment on issues and merge requests by replying to notification emails.
# For documentation on how to set this up, see http://doc.gitlab.com/ce/administration/reply_by_email.html # For documentation on how to set this up, see http://doc.gitlab.com/ce/administration/reply_by_email.html
......
...@@ -216,6 +216,8 @@ Settings.gitlab['impersonation_enabled'] ||= true if Settings.gitlab['impersonat ...@@ -216,6 +216,8 @@ Settings.gitlab['impersonation_enabled'] ||= true if Settings.gitlab['impersonat
Settings.gitlab['usage_ping_enabled'] = true if Settings.gitlab['usage_ping_enabled'].nil? Settings.gitlab['usage_ping_enabled'] = true if Settings.gitlab['usage_ping_enabled'].nil?
Settings.gitlab['max_request_duration_seconds'] ||= 57 Settings.gitlab['max_request_duration_seconds'] ||= 57
Settings.gitlab['display_initial_root_password'] = true if Settings.gitlab['display_initial_root_password'].nil?
Gitlab.ee do Gitlab.ee do
Settings.gitlab['mirror_max_delay'] ||= 300 Settings.gitlab['mirror_max_delay'] ||= 300
Settings.gitlab['mirror_max_capacity'] ||= 30 Settings.gitlab['mirror_max_capacity'] ||= 30
......
...@@ -23,7 +23,11 @@ if user.persisted? ...@@ -23,7 +23,11 @@ if user.persisted?
puts "login: root".color(:green) puts "login: root".color(:green)
if user_args.key?(:password) if user_args.key?(:password)
puts "password: #{user_args[:password]}".color(:green) if ::Settings.gitlab['display_initial_root_password']
puts "password: #{user_args[:password]}".color(:green)
else
puts "password: *** - You opted not to display initial root password to STDOUT."
end
else else
puts "password: You'll be prompted to create one on your first visit.".color(:green) puts "password: You'll be prompted to create one on your first visit.".color(:green)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment