From 874a0f6ce6e3e26b9394f0215a2a46db8909689f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 26 Aug 2017 18:39:00 -0400 Subject: [PATCH] docs: clarify that data is deleted on destroy. Closes dokku/dokku-redis#72 --- README.md | 2 +- subcommands/destroy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 462cb45..c3b25e5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ mysql:backup-unschedule Unschedules the backup of the mysql service mysql:clone Create container then copy data from into mysql:connect Connect via mysql to a mysql service mysql:create Create a mysql service with environment variables -mysql:destroy Delete the service and stop its container if there are no links left +mysql:destroy Delete the service, delete the data and stop its container if there are no links left mysql:enter [command] Enter or run a command in a running mysql service container mysql:export > Export a dump of the mysql service database mysql:expose [port] Expose a mysql service on custom port if provided (random port otherwise) diff --git a/subcommands/destroy b/subcommands/destroy index 4bc9c8f..d7273fe 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" mysql-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"