test:modify two options that downloads the installPackages
This commit is contained in:
parent
2bf72657b8
commit
df2c9819a6
|
@ -75,18 +75,19 @@ function wgetFile {
|
||||||
file=$1
|
file=$1
|
||||||
versionPath=$2
|
versionPath=$2
|
||||||
sourceP=$3
|
sourceP=$3
|
||||||
|
nasServerIP="192.168.1.131"
|
||||||
|
packagePath="/nas/TDengine/v${versionPath}/"
|
||||||
if [ -f ${file} ];then
|
if [ -f ${file} ];then
|
||||||
echoColor YD "${file} already exists ,it will delete it and download it again "
|
echoColor YD "${file} already exists ,it will delete it and download it again "
|
||||||
rm -rf ${file}
|
rm -rf ${file}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${sourcePath} = 'web' ];then
|
if [ ${sourceP} = 'web' ];then
|
||||||
echoColor BD "====download====:wget https://www.taosdata.com/assets-download/3.0/${file}"
|
echoColor BD "====download====:wget https://www.taosdata.com/assets-download/3.0/${file}"
|
||||||
wget https://www.taosdata.com/assets-download/3.0/${file}
|
wget https://www.taosdata.com/assets-download/3.0/${file}
|
||||||
elif [ ${sourcePath} = 'nas' ];then
|
elif [ ${sourceP} = 'nas' ];then
|
||||||
echoColor BD "====download====:scp root@${nasServerIP}:${sourcePath}/${file} ."
|
echoColor BD "====download====:scp root@${nasServerIP}:${packagePath}/${file} ."
|
||||||
scp root@${nasServerIP}:${sourcePath}/${file} .
|
scp root@${nasServerIP}:${packagePath}/${file} .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue