docs: clarify that data is deleted on destroy. Closes dokku/dokku-redis#72
This commit is contained in:
@@ -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 <name> Connect via telnet to a mongo service
|
||||||
mongo:connect-admin <name> Connect via telnet to a mongo service as admin user
|
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: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: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: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)
|
mongo:expose <name> [port] Expose a mongo service on custom port if provided (random port otherwise)
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
mongo-destroy-cmd() {
|
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
|
local cmd="$PLUGIN_COMMAND_PREFIX:destroy" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
|
||||||
declare SERVICE="$1" FORCE_DESTROY="$2"
|
declare SERVICE="$1" FORCE_DESTROY="$2"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user