mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
增加ql check日志显示
This commit is contained in:
parent
6c3f848b2c
commit
2049cf9aa9
|
@ -5,8 +5,6 @@ dir_shell=/ql/shell
|
|||
. $dir_shell/api.sh
|
||||
get_token
|
||||
|
||||
panelLogPath="/root/.pm2/logs/panel-error.log"
|
||||
|
||||
reset_env() {
|
||||
echo -e "---> 1. 开始检测配置文件\n"
|
||||
fix_config
|
||||
|
@ -50,8 +48,8 @@ pm2_log() {
|
|||
echo -e "---> pm2日志"
|
||||
local panelOut="/root/.pm2/logs/panel-out.log"
|
||||
local panelError="/root/.pm2/logs/panel-error.log"
|
||||
tail -n 10 "$panelOut"
|
||||
tail -n 10 "$panelError"
|
||||
tail -n 20 "$panelOut"
|
||||
tail -n 20 "$panelError"
|
||||
}
|
||||
|
||||
check_nginx() {
|
||||
|
@ -98,8 +96,20 @@ check_pm2() {
|
|||
fi
|
||||
}
|
||||
|
||||
init_git() {
|
||||
local dir_current=$(pwd)
|
||||
|
||||
cd $dir_root
|
||||
git config --global user.email "qinglong@@users.noreply.github.com"
|
||||
git config --global user.name "qinglong"
|
||||
git config --global pull.rebase true
|
||||
|
||||
cd $dir_current
|
||||
}
|
||||
|
||||
main() {
|
||||
echo -e "=====> 开始检测"
|
||||
init_git
|
||||
check_ql
|
||||
check_pm2
|
||||
echo -e "\n=====> 检测结束\n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user