Commit 0572220b authored by kalvin's avatar kalvin

fixbugs

parent 1ef5870c
...@@ -45,10 +45,9 @@ do ...@@ -45,10 +45,9 @@ do
if find "$log_path" -mindepth 1 -print -quit | grep -q .; then if find "$log_path" -mindepth 1 -print -quit | grep -q .; then
echo "log is exist!" echo "log is exist!"
log_exist=1 log_exist=1
rm -rf ./logs/error.log
else else
touch ./logs/error.log touch ./logs/error.log
echo "[${count}]Log is not exist or java server start error." >> ./logs/error.log echo "Log is not exist or java server start error." >> ./logs/error.log
fi fi
sleep 1 sleep 1
done 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