Skip to content
Snippets Groups Projects
Verified Commit 51c9f0fd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Allow non-interactive run of upgrade script. ruby script/upgrade.rb FORCE=yes

parent 99830bb6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,7 +12,11 @@ module Gitlab
puts "You use latest GitLab version"
else
puts "Newer GitLab version is available"
answer = prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no})
answer = if ENV['force'] == "yes"
"yes"
else
prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no})
end
 
if answer == "yes"
upgrade
Loading
Loading
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