This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 0205a8b0ded branch-3.0: [chore](script) fix `start_fe.sh --version`
not work and MetaService scripts occur error in Debian GNU/Linux 11 (bullseye)
#45610 (#45701)
0205a8b0ded is described below
commit 0205a8b0ded5780c3c516b17e9ba742e739b17fa
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Dec 23 19:55:26 2024 +0800
branch-3.0: [chore](script) fix `start_fe.sh --version` not work and
MetaService scripts occur error in Debian GNU/Linux 11 (bullseye) #45610
(#45701)
Cherry-picked from #45610
Co-authored-by: yagagagaga <[email protected]>
---
bin/start_fe.sh | 6 ++++++
cloud/script/start.sh | 2 +-
cloud/script/stop.sh | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/bin/start_fe.sh b/bin/start_fe.sh
index ac5971072c3..b089596a9cd 100755
--- a/bin/start_fe.sh
+++ b/bin/start_fe.sh
@@ -258,6 +258,12 @@ if [[ "${HELPER}" != "" ]]; then
HELPER="-helper ${HELPER}"
fi
+if [[ "${OPT_VERSION}" != "" ]]; then
+ export DORIS_LOG_TO_STDERR=1
+ ${LIMIT:+${LIMIT}} "${JAVA}" org.apache.doris.DorisFE --version
+ exit 0
+fi
+
if [[ "${IMAGE_TOOL}" -eq 1 ]]; then
if [[ -n "${IMAGE_PATH}" ]]; then
${LIMIT:+${LIMIT}} "${JAVA}" ${final_java_opt:+${final_java_opt}}
${coverage_opt:+${coverage_opt}} org.apache.doris.DorisFE -i "${IMAGE_PATH}"
diff --git a/cloud/script/start.sh b/cloud/script/start.sh
index 1b1a4a87e53..0a4d606b533 100644
--- a/cloud/script/start.sh
+++ b/cloud/script/start.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
diff --git a/cloud/script/stop.sh b/cloud/script/stop.sh
index 48f01c545ae..1b59cef7182 100644
--- a/cloud/script/stop.sh
+++ b/cloud/script/stop.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]