Commit 51c9f0fd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 99830bb6
...@@ -12,7 +12,11 @@ module Gitlab ...@@ -12,7 +12,11 @@ module Gitlab
puts "You use latest GitLab version" puts "You use latest GitLab version"
else else
puts "Newer GitLab version is available" 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" if answer == "yes"
upgrade upgrade
......
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