Commit 8de72d3d authored by xuezj's avatar xuezj

测试ui日志

parent 1e92b717
...@@ -37,9 +37,19 @@ curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace. ...@@ -37,9 +37,19 @@ curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace.
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' ]]; then
logdir="/home/logs/${HOSTNAME}"
nginxLogDir="/usr/local/openresty/nginx/logs"
mkdir -p "${logdir}"
echo "创建日志目录:$logdir"
rm -rf "${nginxLogDir}"
ln -s "${logdir}" "${nginxLogDir}"
fi
# 删除日志的软链 # 删除日志的软链
rm -rf /usr/local/openresty/nginx/logs/access.log #rm -rf /usr/local/openresty/nginx/logs/access.log
rm -rf /usr/local/openresty/nginx/logs/error.log #rm -rf /usr/local/openresty/nginx/logs/error.log
echo "/usr/bin/openresty -g 'daemon off;'" echo "/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty -g 'daemon off;' /usr/bin/openresty -g 'daemon off;'
\ No newline at end of file
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