From 7c34288f1b06bb225fb1bf182e1f27c9a9ab6afe Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 28 Apr 2021 07:00:57 -0400 Subject: [PATCH] deployment: Remove swimm debian package after it is installed --- deployment_scripts/deploy_linux.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployment_scripts/deploy_linux.sh b/deployment_scripts/deploy_linux.sh index e5d798878..0aa018534 100755 --- a/deployment_scripts/deploy_linux.sh +++ b/deployment_scripts/deploy_linux.sh @@ -240,13 +240,16 @@ else fi # Download Swimm +log_message "Downloading swimm" if exists wget; then wget ${SWIMM_URL} -O $HOME/swimm else curl ${SWIMM_URL} -o $HOME/swimm fi + +log_message "Installing swimm" sudo dpkg -i $HOME/swimm || (sudo apt-get update && sudo apt-get -f install) -sudo chmod +x $HOME/swimm +rm $HOME/swimm sudo chmod +x "${INFECTION_MONKEY_DIR}/build_linux.sh"