From 04bd82a347b307b93fd46f07a619f80b163c9320 Mon Sep 17 00:00:00 2001 From: Eugene Michkov Date: Fri, 26 Jul 2024 15:48:17 +0300 Subject: [PATCH] deploy fix --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b070068..5027b81 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Deploy to Digital Ocean run: | - ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "pkill -f agent-wireguard" + ssh -o StrictHostKeyChecking=no -i ~/.ssh/helios_ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "pgrep -f agent-wireguard && pkill -f agent-wireguard || echo 'agent-wireguard not running'" - name: Deploy to Digital Ocean run: |