om解耦,找不到版本一致的内核包,再尝试找当前目录版本最新的内核包
This commit is contained in:
parent
e5915f4cbd
commit
b158c20b62
@ -323,13 +323,14 @@ General options:
|
||||
def decompressVersioncfg(self):
|
||||
package_path = os.path.dirname(os.path.realpath(__file__))
|
||||
toolpath = package_path + "/../"
|
||||
cmd = "cd " + toolpath + \
|
||||
" && tar -xpf `head -1 version.cfg`*.tar.bz2 ./version.cfg"
|
||||
(status, output) = subprocess.getstatusoutput(cmd)
|
||||
cmd = "cd " + toolpath + " && tar -xpf `head -1 version.cfg`*.tar.bz2 ./version.cfg"
|
||||
(status, _) = subprocess.getstatusoutput(cmd)
|
||||
if status != 0:
|
||||
GaussLog.exitWithError(ErrorCode.GAUSS_502["GAUSS_50217"]
|
||||
% "version.cfg" + "The cmd is %s. " % cmd +
|
||||
"The output is %s." % output)
|
||||
cmd = "cd " + toolpath + " && tar -xpf `ls openGauss*.tar.bz2|tail -1` ./version.cfg"
|
||||
(status, output) = subprocess.getstatusoutput(cmd)
|
||||
if status != 0:
|
||||
GaussLog.exitWithError(ErrorCode.GAUSS_502["GAUSS_50217"] % "version.cfg"
|
||||
+ "The cmd is %s. " % cmd + "The output is %s." % output)
|
||||
|
||||
# init global variables
|
||||
def initGlobals(self):
|
||||
|
@ -28,7 +28,7 @@ function print_help()
|
||||
echo "Usage: $0 [OPTION]
|
||||
-?|--help show help information
|
||||
-U|--user_name cluster user
|
||||
-h|--host_ip intranet ip address of the host in the backend storage network(host1,host2)
|
||||
-H|--host_ip intranet ip address of the host in the backend storage network(host1,host2)
|
||||
-G|--user_grp group of the cluster user(default value dbgrp)
|
||||
-p|--port database server port(default value 20050)
|
||||
-D|--install_location installation directory of the openGauss program(default value ~/cluser)
|
||||
|
@ -20,7 +20,7 @@
|
||||
<PARAM name="azPriority" value="1"/>
|
||||
<PARAM name="dataNum" value="1"/>
|
||||
<PARAM name="dataPortBase" value="@{port}"/>
|
||||
<PARAM name="dataNode1" value="@{installPath}data/dn1,@{nodeName2},@{installPath}/data/dn1"/>
|
||||
<PARAM name="dataNode1" value="@{installPath}/data/dn1,@{nodeName2},@{installPath}/data/dn1"/>
|
||||
</DEVICE>
|
||||
<DEVICE sn="@{nodeName2}">
|
||||
<PARAM name="name" value="@{nodeName2}"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user