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:39:01 -04:00
parent e7802ca80e
commit 47fe74ccfd
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ postgres:backup-unschedule <name> Unschedules the backup of the postgres service
postgres:clone <name> <new-name> Create container <new-name> then copy data from <name> into <new-name> postgres:clone <name> <new-name> Create container <new-name> then copy data from <name> into <new-name>
postgres:connect <name> Connect via psql to a postgres service postgres:connect <name> Connect via psql to a postgres service
postgres:create <name> Create a postgres service with environment variables postgres:create <name> Create a postgres service with environment variables
postgres:destroy <name> Delete the service and stop its container if there are no links left postgres:destroy <name> Delete the service, delete the data and stop its container if there are no links left
postgres:enter <name> [command] Enter or run a command in a running postgres service container postgres:enter <name> [command] Enter or run a command in a running postgres service container
postgres:export <name> > <file> Export a dump of the postgres service database postgres:export <name> > <file> Export a dump of the postgres service database
postgres:expose <name> [port] Expose a postgres service on custom port if provided (random port otherwise) postgres:expose <name> [port] Expose a postgres 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" source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
postgres-destroy-cmd() { 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 local cmd="$PLUGIN_COMMAND_PREFIX:destroy" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" FORCE_DESTROY="$2" declare SERVICE="$1" FORCE_DESTROY="$2"