From 30531cc31a68d8cb7cc93f38ea5ee47cefdebcff Mon Sep 17 00:00:00 2001 From: gidskql6671 Date: Fri, 24 May 2024 15:43:22 +0900 Subject: [PATCH] TEST --- .github/workflows/deploy.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fe2449a..80803d3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,13 +36,12 @@ jobs: git pull origin $BRANCH_NAME server_process=$(ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar$ | grep java) - server_pid=(${server_process// / }) - server_pid=${server_pid[1]} - if [ -n "$server_pid" ]; then - echo TTTTTTTTTTTTTTTTTTTTT - echo $server_pid + if [ -n "$server_process" ]; then + server_pid=(${server_process// / }) + server_pid=${server_pid[1]} + echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid fi - # ./run_sandbox.sh \ No newline at end of file + ./run_sandbox.sh \ No newline at end of file