diff --git a/tools/deploy/obd.sh b/tools/deploy/obd.sh index 1f0f289a54..f3b1ef4788 100755 --- a/tools/deploy/obd.sh +++ b/tools/deploy/obd.sh @@ -560,7 +560,16 @@ function main() { case "$1" in -v ) VERBOSE_FLAG='-v'; set -x; shift ;; --with-local-obproxy) WITH_LOCAL_PROXY="1";SKIP_COPY="1"; shift ;; - -c | --config ) YAML_CONF="$2"; shift 2 ;; + -c | --config ) + if [[ $commond == "deploy" || $commond == "redeploy" || $commond == "mysqltest" ]] + then + YAML_CONF="$2" + shift 2 + else + extra_args="$extra_args $1" + shift + fi + ;; -n | --deploy-name ) DEPLOY_NAME="$2"; shift 2 ;; -p | --data-path ) DATA_PATH="$2"; shift 2 ;; -N ) NO_CONFIRM="1"; shift ;;