update obshell to 12024031122
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user