forked from p15670423/monkey
deployment: Remove swimm debian package after it is installed
This commit is contained in:
parent
9383457518
commit
7c34288f1b
|
@ -240,13 +240,16 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download Swimm
|
# Download Swimm
|
||||||
|
log_message "Downloading swimm"
|
||||||
if exists wget; then
|
if exists wget; then
|
||||||
wget ${SWIMM_URL} -O $HOME/swimm
|
wget ${SWIMM_URL} -O $HOME/swimm
|
||||||
else
|
else
|
||||||
curl ${SWIMM_URL} -o $HOME/swimm
|
curl ${SWIMM_URL} -o $HOME/swimm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
log_message "Installing swimm"
|
||||||
sudo dpkg -i $HOME/swimm || (sudo apt-get update && sudo apt-get -f install)
|
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"
|
sudo chmod +x "${INFECTION_MONKEY_DIR}/build_linux.sh"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue