forked from p15670423/monkey
GC-4552: postinst fix
This commit is contained in:
parent
48f09c64b3
commit
baa73c6b83
|
@ -3,13 +3,7 @@
|
||||||
INSTALLATION_FOLDER=/var/monkey_island/installation
|
INSTALLATION_FOLDER=/var/monkey_island/installation
|
||||||
|
|
||||||
# install pip requirements
|
# install pip requirements
|
||||||
if [ -r $INSTALLATION_FOLDER/pip_requirements.txt ]; then
|
pip install -r /var/monkey_island/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER
|
||||||
sed -i 's^git.*/\(.*\).git^\1^' $INSTALLATION_FOLDER/pip_requirements.txt # Use only basename for remote git pips
|
|
||||||
pip install -r $INSTALLATION_FOLDER/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER/installation/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# remove installation folder
|
# remove installation folder
|
||||||
if [ -r $INSTALLATION_FOLDER ]; then
|
rm -rf $INSTALLATION_FOLDER
|
||||||
rm -rf $INSTALLATION_FOLDER
|
|
||||||
rmdir --ignore-fail-on-non-empty $INSTALLATION_FOLDER
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue