jerboaa pushed to thermostat (f22). "Don't use deprecated addUser. Use createUser instead."
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri May 22 15:47:48 UTC 2015
From 0e6b4e2633920a29746a1a5c448e132581ef1801 Mon Sep 17 00:00:00 2001
From: Severin Gehwolf <sgehwolf at redhat.com>
Date: Fri, 22 May 2015 16:12:28 +0200
Subject: Don't use deprecated addUser. Use createUser instead.
diff --git a/mongodb26_setup_changes.patch b/mongodb26_setup_changes.patch
index 3bd9945..9885d56 100644
--- a/mongodb26_setup_changes.patch
+++ b/mongodb26_setup_changes.patch
@@ -34,7 +34,7 @@ diff --git a/distribution/scripts/thermostat-setup b/distribution/scripts/thermo
+ sleep 5
+ mongo 127.0.0.1:27518 << EOF
+use thermostat
-+db.addUser({ user: "$USERNAME", pwd: "$PASSWORD", roles: [ "readWrite" ] })
++db.createUser({ user: "$USERNAME", pwd: "$PASSWORD", roles: [ "readWrite" ] })
+quit
+EOF
+ MONGO_SETUP_RETVAL="$?"
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/thermostat.git/commit/?h=f22&id=0e6b4e2633920a29746a1a5c448e132581ef1801
More information about the scm-commits
mailing list