diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 64a5aef..b82412a 100755 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -48,10 +48,12 @@ jobs: username: ${{ vars.YUYUN_USER }} password: ${{ secrets.SERVER_ROOT_PASSWORD }} script: | + cd /root/Server pkill -f HttpServer || true cp /root/Server/HttpServer /root/Server/HttpServer.bak source /etc/profile nohup /root/Server/HttpServer > /dev/null 2>&1 & + exit 0 - name: Notify-End if: ${{ always() }} run: |