From 9951c56d4bd1c7422b16b7c928724bafcdfe5a76 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 6 Jan 2019 01:14:42 +0100 Subject: [PATCH] Update remove --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index e4f5a8b..93137de 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("'${dbuser}'", {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