forked from p15670423/monkey
Don't create already created dir
Remove monkey_island dir on removal
This commit is contained in:
parent
bee1bc6f8f
commit
3e6a2136d9
|
@ -9,7 +9,6 @@ chmod 755 /usr/bin/monkey
|
|||
|
||||
# Prepare python virtualenv
|
||||
pip install virtualenv --no-index --find-links file://$INSTALLATION_FOLDER
|
||||
mkdir ${MONKEY_FOLDER}/bin
|
||||
virtualenv ${PYTHON_FOLDER}
|
||||
|
||||
# install pip requirements
|
||||
|
|
|
@ -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-mongo.service" ] && rm -f /lib/systemd/system/monkey-mongo.service
|
||||
|
||||
rm -r -f /var/monkey_island
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue