oceanbase / obdiag

obdiag (OceanBase Diagnostic Tool) is designed to help OceanBase users quickly gather necessary information and analyze the root cause of the problem.
https://www.oceanbase.com/docs/obdiag-cn
Mulan Permissive Software License, Version 2
134 stars 27 forks source link

[Bug]: /usr/local/oceanbase-diagnostic-tool/init.sh Debian GNU/Linux 12 error #353

Closed Teingi closed 1 month ago

Teingi commented 1 month ago

Describe the bug

Selecting previously unselected package oceanbase-diagnostic-tool.
(Reading database ... 23958 files and directories currently installed.)
Preparing to unpack oceanbase-diagnostic-tool_2.3.0-202407220723.el7_amd64.deb ...
Unpacking oceanbase-diagnostic-tool (2.3.0-202407220723.el7) ...
Setting up oceanbase-diagnostic-tool (2.3.0-202407220723.el7) ...
/usr/local/oceanbase-diagnostic-tool/init.sh: 3: [[: not found
/usr/local/oceanbase-diagnostic-tool/init.sh: 9: Bad substitution
/usr/local/oceanbase-diagnostic-tool/init.sh: 42: [[: not found
/usr/local/oceanbase-diagnostic-tool/init.sh: 47: source: not found
Init obdiag finished
Please execute the following command to init obdiag:

 source /usr/local/oceanbase-diagnostic-tool/init.sh

Environment

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Fast reproduce steps

  1. dpkg -i oceanbase-diagnostic-tool*.deb

Expected behavior

No response

Actual behavior

No response

Additional context

No response

Teingi commented 1 month ago

355