Skip to content

Commit

Permalink
upgrade: Hide the database step when it is not used
Browse files Browse the repository at this point in the history
(Crowbar) database step is necessary for 6 to 7 upgrade only.
  • Loading branch information
jsuchome committed Dec 6, 2018
1 parent 34ceb6f commit 8a3b4d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/crowbar/client/app/upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ def repocheck(component)
catch_errors(e)
end

desc "database MODE",
"Initialize Crowbar database"
if Config.defaults[:upgrade_versions] == "6-to-7"
desc "database MODE", "Initialize Crowbar database"
end

long_desc <<-LONGDESC
`database MODE` will set up the Crowbar database and perform the necessary migrations
Expand Down

0 comments on commit 8a3b4d4

Please sign in to comment.