Skip to content

Commit

Permalink
Only kill if there is a process
Browse files Browse the repository at this point in the history
  • Loading branch information
davividal committed Sep 20, 2023
1 parent 3f576a0 commit 210fa14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ private_scan_task:
- docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
setup_script:
- /usr/bin/systemctl stop unattended-upgrades.service
- /usr/bin/pgrep apt | xargs kill -SIGINT
- /usr/bin/pgrep apt | xargs kill -SIGTERM
- /usr/bin/pgrep apt | xargs kill -9 ; /usr/bin/dpkg --configure -a
- /usr/bin/pgrep apt | xargs -r kill -SIGINT
- /usr/bin/pgrep apt | xargs -r kill -SIGTERM
- /usr/bin/pgrep apt | xargs -r kill -9 ; /usr/bin/dpkg --configure -a
- apt-get remove -y unattended-upgrades
- apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre
- curl -sSL https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar -o wss-unified-agent.jar
Expand All @@ -100,9 +100,9 @@ public_scan_task:
<<: *VM_TEMPLATE
setup_script:
- /usr/bin/systemctl stop unattended-upgrades.service
- /usr/bin/pgrep apt | xargs kill -SIGINT
- /usr/bin/pgrep apt | xargs kill -SIGTERM
- /usr/bin/pgrep apt | xargs kill -9 ; /usr/bin/dpkg --configure -a
- /usr/bin/pgrep apt | xargs -r kill -SIGINT
- /usr/bin/pgrep apt | xargs -r kill -SIGTERM
- /usr/bin/pgrep apt | xargs -r kill -9 ; /usr/bin/dpkg --configure -a
- apt-get remove -y unattended-upgrades
- apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre
- curl -sSL https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar -o wss-unified-agent.jar
Expand Down

0 comments on commit 210fa14

Please sign in to comment.