From 158ccaf6ba650edaff36b32d53daa2ff87375957 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 6 Jan 2019 01:10:29 +0100 Subject: [PATCH] Update remove --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 24d9f84..e4f5a8b 100644 --- a/scripts/remove +++ b/scripts/remove @@ -45,7 +45,7 @@ fi # REMOVE THE MONGO DATABASE #================================================= -mongo --shell "$dbname" --eval "db.dropUser('$db_user', {w: 'majority', wtimeout: 5000})" <<< exit +mongo --shell "$dbname" --eval 'db.dropUser("'${db_user}'", {w: "majority", wtimeout: 5000})' <<< exit #mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" --eval 'db.dropUser('dbuser');' <<< exit mongo --shell "$dbname" --eval 'db.runCommand({dropDatabase: 1})' <<< exit #mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" --eval 'db.dropDatabase();' <<< exit