Don't create already created dir

Remove monkey_island dir on removal
This commit is contained in:
Itay Mizeretz 2018-01-02 16:13:20 +02:00
parent bee1bc6f8f
commit 3e6a2136d9
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,6 @@ chmod 755 /usr/bin/monkey
# Prepare python virtualenv # Prepare python virtualenv
pip install virtualenv --no-index --find-links file://$INSTALLATION_FOLDER pip install virtualenv --no-index --find-links file://$INSTALLATION_FOLDER
mkdir ${MONKEY_FOLDER}/bin
virtualenv ${PYTHON_FOLDER} virtualenv ${PYTHON_FOLDER}
# install pip requirements # install pip requirements

View File

@ -8,4 +8,6 @@ rm -f /etc/init/monkey-mongo.conf
[ -f "/lib/systemd/system/monkey-island.service" ] && rm -f /lib/systemd/system/monkey-island.service [ -f "/lib/systemd/system/monkey-island.service" ] && rm -f /lib/systemd/system/monkey-island.service
[ -f "/lib/systemd/system/monkey-mongo.service" ] && rm -f /lib/systemd/system/monkey-mongo.service [ -f "/lib/systemd/system/monkey-mongo.service" ] && rm -f /lib/systemd/system/monkey-mongo.service
rm -r -f /var/monkey_island
exit 0 exit 0