chg: [installer] Level installer

pull/4249/head
Steve Clement 2019-03-01 10:19:32 +05:30
parent dc49a3bdf8
commit 36999ae60a
1 changed files with 9 additions and 23 deletions

View File

@ -868,17 +868,6 @@ checkSudoKeeper () {
fi
}
runTests () {
sudo sed -i -E "s/url\ =\ (.*)/url\ =\ 'https:\/\/misp.local'/g" $PATH_TO_MISP/PyMISP/tests/testlive_comprehensive.py
sudo sed -i -E "s/key\ =\ (.*)/key\ =\ '${AUTH_KEY}'/g" $PATH_TO_MISP/PyMISP/tests/testlive_comprehensive.py
sudo chown -R www-data:www-data $PATH_TO_MISP/PyMISP/
sudo -H -u www-data sh -c "cd $PATH_TO_MISP/PyMISP && git submodule foreach git pull origin master"
sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -e $PATH_TO_MISP/PyMISP/.[fileobjects,neo,openioc,virustotal,pdfexport]
sudo -H -u www-data git clone https://github.com/viper-framework/viper-test-files.git $PATH_TO_MISP/PyMISP/tests/viper-test-files
sudo -H -u www-data sh -c "cd $PATH_TO_MISP/PyMISP && ${PATH_TO_MISP}/venv/bin/python tests/testlive_comprehensive.py"
}
installCoreDeps () {
debug "Installing core dependencies"
# Install the dependencies: (some might already be installed)
@ -1833,9 +1822,6 @@ installSupported () {
[[ -n $MAIL2 ]] || [[ -n $ALL ]] && mail2misp
progress 100
# Run tests
runTests
# Run final script to inform the User what happened - functionLocation('generic/supportFunctions.md')
theEnd
}