Skip to content

Commit

Permalink
[chore](script) fix start_fe.sh --version not work and MetaService …
Browse files Browse the repository at this point in the history
…scripts occur error in Debian GNU/Linux 11 (bullseye) (#45610)

1. fix `start_fe.sh --version` not work
2. fix `ms/bin/start.sh` could not work in Debian GNU/Linux 11
(bullseye)
  • Loading branch information
yagagagaga authored Dec 20, 2024
1 parent a15e3e5 commit 8956279
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bin/start_fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion cloud/script/start.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion cloud/script/stop.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8956279

Please sign in to comment.