Commit 51c9f0fd76b4e88121c670e04b87f21b732bdeae
1 parent
99830bb6
Exists in
master
and in
4 other branches
Allow non-interactive run of upgrade script. ruby script/upgrade.rb FORCE=yes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
lib/gitlab/upgrader.rb
... | ... | @@ -12,7 +12,11 @@ module Gitlab |
12 | 12 | puts "You use latest GitLab version" |
13 | 13 | else |
14 | 14 | puts "Newer GitLab version is available" |
15 | - answer = prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no}) | |
15 | + answer = if ENV['force'] == "yes" | |
16 | + "yes" | |
17 | + else | |
18 | + prompt("Do you want to upgrade (yes/no)? ".blue, %w{yes no}) | |
19 | + end | |
16 | 20 | |
17 | 21 | if answer == "yes" |
18 | 22 | upgrade | ... | ... |