Skip to content

Commit

Permalink
修复entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhh committed May 28, 2021
1 parent 4b65cac commit 1b6328a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ echo -e "nginx启动成功...\n"

echo -e "======================4. 启动控制面板========================\n"
cd $dir_root
if [[ $(pm2 info panel) ]]; then
if [[ $(pm2 info panel 2>/dev/null) ]]; then
pm2 reload panel
else
pm2 start $dir_root/build/app.js -n panel
Expand Down Expand Up @@ -47,6 +47,6 @@ echo -e "容器启动成功..."
echo -e "\n请先访问5700端口,登录成功面板之后再执行添加定时任务..."
echo -e "############################################################\n"

crond -f
crond -f >/dev/null 2>&1

exec "$@"

0 comments on commit 1b6328a

Please sign in to comment.