diff --git a/README.md b/README.md index bcaf356..cab8bcf 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ mongo:clone Create container then copy data from < mongo:connect Connect via telnet to a mongo service mongo:connect-admin Connect via telnet to a mongo service as admin user mongo:create Create a mongo service with environment variables -mongo:destroy Delete the service and stop its container if there are no links left +mongo:destroy Delete the service, delete the data and stop its container if there are no links left mongo:enter [command] Enter or run a command in a running mongo service container mongo:export > Export a dump of the mongo service database mongo:expose [port] Expose a mongo service on custom port if provided (random port otherwise) diff --git a/subcommands/destroy b/subcommands/destroy index 78fce42..e044ce1 100755 --- a/subcommands/destroy +++ b/subcommands/destroy @@ -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"