1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update remove

This commit is contained in:
frju365 2018-03-11 14:25:56 +01:00 committed by GitHub
parent 527938b854
commit 29b5d99fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,10 +45,11 @@ fi
# REMOVE THE MONGO DATABASE
#=================================================
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 --shell "$dbname" --eval 'db.runCommand({dropDatabase: 1})' <<< exit
#mongo -u $dbuser -p$dbpass --authenticationDatabase $dbname --shell "$dbname" --eval 'db.dropDatabase();' <<< exit
#mongo --shell "$dbname" --eval 'db.dropDatabase();' <<< exit
#=================================================
# REMOVE DEPENDENCIES