Commit 61b06d8a authored by kalvin's avatar kalvin

alias log

parent 3fafcfab
...@@ -76,6 +76,7 @@ if [[ $CLUSTER == "3B" ]]; then ...@@ -76,6 +76,7 @@ if [[ $CLUSTER == "3B" ]]; then
tail -f $log_path/*log tail -f $log_path/*log
else else
echo "clean ${log_path}/*" echo "clean ${log_path}/*"
#历史遗留问题,抽空fix #历史遗留问题,抽空fix
echo "replaceGitRemote" echo "replaceGitRemote"
replaceGitRemote(){ replaceGitRemote(){
...@@ -143,6 +144,8 @@ else ...@@ -143,6 +144,8 @@ else
echo "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
echo "export alias log='cd logs;tail -500f *log';" >> ~/.bashrc
source ~/.bashrc
source ~/.bash_profile source ~/.bash_profile
echo "cd /home/qg-xterm/;git pull;cd -" echo "cd /home/qg-xterm/;git pull;cd -"
......
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