Commit 56deca26 authored by kalvin's avatar kalvin

fixbugs

parent a41a0ff7
......@@ -9,7 +9,6 @@ echo "NAMESPACE is $NAMESPACE"
echo 192.168.6.13 eos.quantgroups.com >> /etc/hosts
echo 192.168.4.117 apollo-dev.quantgroups.com >> /etc/hosts
echo "NAMESPACE:${NAMESPACE}" >> build_info
source ~/.bash_profile
sed -i "s#.xyqb.com#-$NAMESPACE.q-gp.com#g" ${config_path}
......@@ -37,8 +36,6 @@ fi
count=0
log_exist=0
log_path="/home/quant_group/logs"
touch "${log_path}/error.log"
until [[ $count -eq 60 ]] || [[ $log_exist -eq 1 ]]
do
let count+=1
......@@ -47,10 +44,10 @@ do
if find "$log_path" -mindepth 1 -print -quit | grep -q .; then
echo "log is exist!"
log_exist=1
rm -rf /home/quant_group/logs/error.log
else
echo "Log is not exist! Waiting for server start."
echo "[${count}]Log is not exist or java server start error." >> "${log_path}/error.log"
touch ./logs/error.log
echo "[${count}]Log is not exist or java server start error." >> ./logs/error.log
fi
sleep 1
done
......
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