Skip to content

Commit

Permalink
marklogic-community#650: default to 9, warn about untested and EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn committed Jun 12, 2017
1 parent 1245e13 commit e6f72cc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ def initialize(options)

@server_version = @properties["ml.server-version"].to_i

if (@server_version < 7)
logger.warn "WARN: This version of Roxy is not tested against MarkLogic #{@server_version}."
if (@server_version > 4)
logger.info " Consider downgrading to v1.7.0 using `./ml upgrade --branch=v1.7.0`."
end
logger.warn "Note: MarkLogic #{@server_version} is EOL."
end

if @properties["ml.bootstrap-port"]
@bootstrap_port = @properties["ml.bootstrap-port"]
else
Expand Down Expand Up @@ -328,12 +336,12 @@ def self.prompt_server_version
else
puts 'Required option --server-version=[version] not specified with valid value.
What is the version number of the target MarkLogic server? [5, 6, 7, 8, or 9]'
What is the version number of the target MarkLogic server? [7, 8, or 9]'
server_version = STDIN.gets.chomp.to_i
end
if server_version == 0
puts "Defaulting to 8.."
server_version = 8
puts "Defaulting to 9.."
server_version = 9
end
server_version
end
Expand Down

0 comments on commit e6f72cc

Please sign in to comment.