update obshell to 12024031122

This commit is contained in:
LINxiansheng
2024-03-13 02:51:02 +00:00
committed by ob-robot
parent 51578241d8
commit b9a0a58801
8 changed files with 15 additions and 14 deletions

View File

@ -28,9 +28,10 @@ function prepare_config_json {
if [[ -n "$key" && ! "$key" =~ ^\; ]]; then
if [[ $key == *"ip"* ]]; then
ip=$value
elif [[ $key == *"obshellPort"* ]]; then
elif [[ $key == *"obshell_port"* ]]; then
port=$value
elif [[ $key == *"rootPwd"* ]]; then
elif [[ $key == *"root_pwd"* ]]; then
key="rootPwd"
jq --arg parent "oceanbase_ce" --arg child "cluster" --arg key "$key" --arg value "$value" '.[$parent][$child][$key] = $value' "$json_file" > "$temp_file"
mv "$temp_file" "$json_file"
else

View File

@ -4,12 +4,12 @@
# Afterward, you can reinstall and launch OceanBase with the new IP address.
# For instance, to set the observer IP to 127.0.0.1, you would use the line:
# ip=127.0.0.1
mysqlPort=2881
rpcPort=2882
obshellPort=2886
rootPwd=""
redoDir=/var/lib/oceanbase/redo
dataDir=/var/lib/oceanbase/data
mysql_port=2881
rpc_port=2882
obshell_port=2886
root_pwd=""
redo_dir=/var/lib/oceanbase/redo
data_dir=/var/lib/oceanbase/data
datafile_size=2G
datafile_next=2G
datafile_maxsize=20G