Commit 759d806f authored by xuezj's avatar xuezj

测试ui日志

parent 53346d76
...@@ -4,8 +4,6 @@ echo "start run ui" ...@@ -4,8 +4,6 @@ echo "start run ui"
current="/home/quant_group" current="/home/quant_group"
echo "current: ${current}" echo "current: ${current}"
export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "NAMESPACE is $NAMESPACE" echo "NAMESPACE is $NAMESPACE"
# 运行qa工具 # 运行qa工具
...@@ -28,25 +26,20 @@ do ...@@ -28,25 +26,20 @@ do
echo "tar zxf ${current}/$with_ext -C ${current}/$fname" echo "tar zxf ${current}/$with_ext -C ${current}/$fname"
tar zxf ${current}/$with_ext -C ${current}/$fname tar zxf ${current}/$with_ext -C ${current}/$fname
# echo "rm -rf ${package_path}/$with_ext"
# rm -rf ${package_path}/$with_ext
done done
curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace.py -o replace.py curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace.py -o replace.py
curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace_config_tke.yaml -o replace_config.yaml curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace_config_tke.yaml -o replace_config.yaml
python replace.py $host; python replace.py $host;
if [[ $NAMESPACE == 'cube' || $NAMESPACE == 'fe' ]]; then logdir="/home/logs/${HOSTNAME}"
logdir="/home/logs/${HOSTNAME}" nginxLogDir="/usr/local/openresty/nginx/logs"
nginxLogDir="/usr/local/openresty/nginx/logs" mkdir -p "${logdir}"
mkdir -p "${logdir}" echo "创建日志目录:$logdir"
echo "创建日志目录:$logdir"
rm -rf "${nginxLogDir}"
ln -s "${logdir}" "${nginxLogDir}"
fi
rm -rf "${nginxLogDir}"
ln -s "${logdir}" "${nginxLogDir}"
echo "/usr/bin/openresty -g 'daemon off;'" echo "/usr/bin/openresty -g 'daemon off;'"
......
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