[install] Fix the incorrect function name

On Ubuntu 14.04, SUSE and Debian, MongoDB shell version is 2.4.x.
We should use 'addUser' instead of 'createUser'.

backport:mitaka

Change-Id: I66178af5477b52d8e22f44d509c4af30feb4ace5
Closes-Bug:#1582356
This commit is contained in:
chen-xing 2016-05-27 00:17:04 +08:00 committed by chen.xing
parent 4481383d7c
commit 1af2a24f56

View File

@ -23,7 +23,7 @@ MongoDB before proceeding further.
# mongo --host controller --eval '
db = db.getSiblingDB("ceilometer");
db.createUser({user: "ceilometer",
db.addUser({user: "ceilometer",
pwd: "CEILOMETER_DBPASS",
roles: [ "readWrite", "dbAdmin" ]})'