From 427bf44e011b311025757c72ecef7f6930185eb0 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 15 May 2021 00:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20ql=20update=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index 6a345ef8..b0474325 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -261,16 +261,13 @@ update_qinglong() { if [[ $exit_status -eq 0 ]]; then echo -e "\n更新$ql_static_repo成功...\n" cp -rf $ql_static_repo/* $dir_root + nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf + echo -e "重启面板中..." + pm2 reload all >/dev/null 2>&1 else echo -e "\n更新$dir_root失败,请检查原因...\n" fi - if [[ $exit_status -eq 0 ]]; then - cd $dir_root - nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf - echo -e "重启面板中..." - pm2 reload all >/dev/null 2>&1 - fi } ## 对比脚本