Fix command name

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-29 10:48:00 -04:00
parent ec5108762c
commit bf5c99f04e

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"
enter-cmd() {
mysql-enter-cmd() {
declare desc="enter or run a command in a running $PLUGIN_SERVICE service container"
local cmd="$PLUGIN_COMMAND_PREFIX:enter" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" && shift 1
@@ -13,4 +13,4 @@ enter-cmd() {
service_enter "$SERVICE" "$@"
}
enter-cmd "$@"
mysql-enter-cmd "$@"