Added scripts for the Server.
This commit is contained in:
11
scripts/mongodb_delete_database_test.sh
Executable file
11
scripts/mongodb_delete_database_test.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
db=Test_FreePlanet
|
||||
port=27018
|
||||
|
||||
read -p "*** DATABASE MONGODB DI TEST -------- SEI SICURO DI CANCELLARE IL DATABASE $db (Y/N) ? " risposta
|
||||
|
||||
if [[ $risposta == "Y" || $risposta == "y" ]]; then
|
||||
mongo $db --port $port --eval "db.dropDatabase()"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user