Skip to content

Commit

Permalink
killing nohup only after container built
Browse files Browse the repository at this point in the history
  • Loading branch information
Ereiarrus committed Jan 30, 2024
1 parent 137b6e5 commit 3797cd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker_run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash


restarter="$(pgrep restart_24.sh)"
kill "$restarter"
#restarter_kill_status="$?"
#if [ "$restarter_kill_status" != 0 ]; then
# >&2 echo "error on killing restarter script"
Expand All @@ -22,6 +20,8 @@ if [ -z "$old_container_id" ]; then
docker stop previous_container
fi
else
restarter="$(pgrep restart_24.sh)"
kill "$restarter"
docker stop "$old_container_id" > /dev/null 2>&1
fi

Expand Down

0 comments on commit 3797cd6

Please sign in to comment.