Commit 03595718 authored by 智勇's avatar 智勇

tar zxf

parent 3ae6cbb5
......@@ -11,6 +11,22 @@ echo "SYSTEM_NAME is $SYSTEM_NAME"
host=`curl -s http://172.30.220.22:3003/proconfig/get_host?system_name=${SYSTEM_NAME}`
echo "host: ${host}"
for entry in ./*tgz
do
with_ext=$(basename "$entry")
echo ${with_ext}
fname="${with_ext%.*}"
# echo "mkdir -p /home/quant_group/$fname"
# mkdir -p /home/quant_group/$fname
echo "tar zxf ${package_path}/$with_ext -C ${package_path}/$fname"
tar zxf ${package_path}/$with_ext -C ${package_path}/$fname
# echo "rm -rf ${package_path}/$with_ext"
# rm -rf ${package_path}/$with_ext
done
curl -sSL http://git.q-gp.com/QA/config_repository/raw/master/yaml/replace.py -o replace.py
curl -sSL http://git.q-gp.com/QA/config_repository/raw/master/yaml/replace_config.yaml -o replace_config.yaml
python replace.py $host;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment