diff --git a/README.md b/README.md index b24f4c3..431300d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ postgres:backup-unschedule Unschedules the backup of the postgres service postgres:clone Create container then copy data from into postgres:connect Connect via psql to a postgres service postgres:create Create a postgres service with environment variables -postgres:destroy Delete the service and stop its container if there are no links left +postgres:destroy Delete the service, delete the data and stop its container if there are no links left postgres:enter [command] Enter or run a command in a running postgres service container postgres:export > Export a dump of the postgres service database postgres:expose [port] Expose a postgres service on custom port if provided (random port otherwise) diff --git a/subcommands/destroy b/subcommands/destroy index aff508d..b18d1ad 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" postgres-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"