修复entrypoint判断

This commit is contained in:
hanhh 2021-06-16 23:54:15 +08:00
parent bc0044d119
commit f345f362e4
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ echo
echo -e "======================2. 更新源代码========================\n"
ql update "no-restart"
pm2 l >/dev/null 2>&1
echo
echo -e "======================3. 启动nginx========================\n"

View File

@ -301,6 +301,8 @@ update_qinglong() {
}
reload_pm2() {
pm2 l >/dev/null 2>&1
if [[ $(pm2 info panel 2>/dev/null) ]]; then
pm2 reload panel >/dev/null 2>&1
else