You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2022/11/02 00:57:55 UTC
[iotdb] branch bugfix-start-cli-e created (now 1ac49a00de)
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a change to branch bugfix-start-cli-e
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at 1ac49a00de fix start-cli.sh does not support -e
This branch includes the following new commits:
new 1ac49a00de fix start-cli.sh does not support -e
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: fix start-cli.sh does not support -e
Posted by hx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch bugfix-start-cli-e
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 1ac49a00deee425493c4527dce1f7f2f2a3ea34e
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Wed Nov 2 08:57:27 2022 +0800
fix start-cli.sh does not support -e
---
cli/src/assembly/resources/sbin/start-cli.sh | 29 ----------------------------
1 file changed, 29 deletions(-)
diff --git a/cli/src/assembly/resources/sbin/start-cli.sh b/cli/src/assembly/resources/sbin/start-cli.sh
index dbeedc7250..b082172afd 100644
--- a/cli/src/assembly/resources/sbin/start-cli.sh
+++ b/cli/src/assembly/resources/sbin/start-cli.sh
@@ -53,35 +53,6 @@ else
JAVA=java
fi
-PARAMETERS="$@"
-
-# if [ $# -eq 0 ]
-# then
-# PARAMETERS="-h 127.0.0.1 -p 6667 -u root -pw root"
-# fi
-
-# Added parameters when default parameters are missing
-
-# sh version
-case "$PARAMETERS" in
-*"-pw "*) PARAMETERS=$PARAMETERS ;;
-* ) PARAMETERS="-pw root $PARAMETERS" ;;
-esac
-case "$PARAMETERS" in
-*"-u "*) PARAMETERS=$PARAMETERS ;;
-* ) PARAMETERS="-u root $PARAMETERS" ;;
-esac
-case "$PARAMETERS" in
-*"-p "*) PARAMETERS=$PARAMETERS ;;
-* ) PARAMETERS="-p 6667 $PARAMETERS" ;;
-esac
-case "$PARAMETERS" in
-*"-h "*) PARAMETERS=$PARAMETERS ;;
-* ) PARAMETERS="-h 127.0.0.1 $PARAMETERS" ;;
-esac
-
-# echo $PARAMETERS
-
set -o noglob
iotdb_cli_params="-Dlogback.configurationFile=${IOTDB_CLI_CONF}/logback-cli.xml"
exec "$JAVA" $iotdb_cli_params -cp "$CLASSPATH" "$MAIN_CLASS" $PARAMETERS