修复青龙重启

This commit is contained in:
whyour 2021-05-12 14:14:43 +08:00
parent a264af0504
commit ef26dd847e
2 changed files with 6 additions and 3 deletions

View File

@ -19,12 +19,12 @@ echo -e "nginx启动成功...\n"
echo -e "======================4. 启动控制面板========================\n" echo -e "======================4. 启动控制面板========================\n"
cd $dir_root cd $dir_root
pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel --watch $dir_root/build pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
echo -e "控制面板启动成功...\n" echo -e "控制面板启动成功...\n"
echo -e "======================5. 启动定时任务========================\n" echo -e "======================5. 启动定时任务========================\n"
cd $dir_root cd $dir_root
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule --watch $dir_root/build pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
echo -e "定时任务启动成功...\n" echo -e "定时任务启动成功...\n"
if [[ $AutoStartBot == true ]]; then if [[ $AutoStartBot == true ]]; then

View File

@ -256,7 +256,10 @@ update_qinglong() {
if [[ $exit_status -eq 0 ]]; then if [[ $exit_status -eq 0 ]]; then
echo -e "重启青龙面板...\n" echo -e "重启青龙面板...\n"
sleep 5 cd $dir_root
pm2 reload panel 2>/dev/null || pm2 start $dir_root/build/app.js -n panel
pm2 reload schedule 2>/dev/null || pm2 start $dir_root/build/schedule.js -n schedule
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
echo -e "重启面板完成...\n" echo -e "重启面板完成...\n"
fi fi