rename admin command

This commit is contained in:
Vitaly Domnikov
2016-07-11 16:51:10 -07:00
parent 0d64d42218
commit c148691ea7
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_BASE_PATH/common/functions"
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
mongo-admin-cmd() {
mongo-connect-admin-cmd() {
declare desc="connect via mongo to a $PLUGIN_SERVICE service as admin user"
local cmd="$PLUGIN_COMMAND_PREFIX:admin" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1"
@@ -19,4 +19,4 @@ mongo-admin-cmd() {
docker exec -i $SERVICE_TTY_OPTS "$SERVICE_NAME" mongo -u admin -p "$PASSWORD" --authenticationDatabase admin "$SERVICE"
}
mongo-admin-cmd "$@"
mongo-connect-admin-cmd "$@"