修改重启命令执行顺序

This commit is contained in:
whyour 2021-05-10 23:35:43 +08:00
parent e9f77829c8
commit 2bcd0112c4

View File

@ -306,14 +306,14 @@ restart_qinglong() {
yarn cache clean
echo -e "重新编译青龙完成...\n"
echo -e "重启定时任务...\n"
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
echo -e "重启定时完成...\n"
echo -e "重启青龙面板...\n"
pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
echo -e "重启面板完成...\n"
echo -e "重启定时任务...\n"
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
echo -e "重启定时完成...\n"
fi
}