docs: clarify that data is deleted on destroy. Closes dokku/dokku-redis#72

This commit is contained in:
Jose Diaz-Gonzalez
2017-08-26 18:38:59 -04:00
parent 7d150f8797
commit 0c3c0d8f4b
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ mongo:clone <name> <new-name> Create container <new-name> then copy data from <
mongo:connect <name> Connect via telnet to a mongo service
mongo:connect-admin <name> Connect via telnet to a mongo service as admin user
mongo:create <name> Create a mongo service with environment variables
mongo:destroy <name> Delete the service and stop its container if there are no links left
mongo:destroy <name> Delete the service, delete the data and stop its container if there are no links left
mongo:enter <name> [command] Enter or run a command in a running mongo service container
mongo:export <name> > <file> Export a dump of the mongo service database
mongo:expose <name> [port] Expose a mongo service on custom port if provided (random port otherwise)

View File

@@ -5,7 +5,7 @@ source "$PLUGIN_BASE_PATH/common/functions"
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
mongo-destroy-cmd() {
declare desc="delete the $PLUGIN_SERVICE service and stop its container if there are no links left"
declare desc="delete the $PLUGIN_SERVICE service, delete the data and stop its container if there are no links left"
local cmd="$PLUGIN_COMMAND_PREFIX:destroy" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" FORCE_DESTROY="$2"