Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #424 from grtjn/359-non-admin-mlcp
Browse files Browse the repository at this point in the history
Fixed #359: added separate mlcp user/pass properties
  • Loading branch information
paxtonhare committed Apr 30, 2015
2 parents 65b1dbd + 274234f commit b75bb87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions deploy/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ local-server=localhost
#
mlcp-home=/usr/local/mlcp
mlcp-vmargs=-Xmx512m
mlcp-user=${user}
mlcp-password=${password}

#
# Temporary fix to support MarkLogic 8 EA2
Expand Down
4 changes: 3 additions & 1 deletion deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1106,9 +1106,11 @@ def mlcp
end
end

@ml_username = @properties['ml.mlcp-user'] || @properties['ml.user']
@ml_password = @properties['ml.mlcp-password'] || @ml_password
if ARGV.length > 0
password_prompt
connection_string = %Q{ -username #{@properties['ml.user']} -password #{@ml_password} -host #{@properties['ml.server']} -port #{@properties['ml.xcc-port']}}
connection_string = %Q{ -username #{@ml_username} -password #{@ml_password} -host #{@properties['ml.server']} -port #{@properties['ml.xcc-port']}}

args = ARGV.join(" ")

Expand Down

0 comments on commit b75bb87

Please sign in to comment.