mirror of https://github.com/MISP/misp-packer
chg: [scripts] Updated stix2 install. Initial testing suite stuff.
parent
6817ff4384
commit
71ec149389
|
@ -102,7 +102,8 @@ sudo apt-get -y upgrade > /dev/null 2>&1
|
|||
sudo apt-get -y autoremove > /dev/null 2>&1
|
||||
|
||||
echo "--- Install base packages ---"
|
||||
sudo apt-get -y install curl net-tools gcc git gnupg-agent make python openssl redis-server sudo tmux vim virtualenvwrapper virtualenv zip python3-pythonmagick tesseract-ocr htop imagemagick asciidoctor jq ntp ntpdate mailutils > /dev/null 2>&1
|
||||
sudo apt-get -y install curl net-tools gcc git gnupg-agent make python openssl redis-server sudo tmux vim virtualenvwrapper virtualenv zip python3-pythonmagick tesseract-ocr htop imagemagick asciidoctor jq ntp ntpdate > /dev/null 2>&1
|
||||
## Remove mailutils, it probably makes the script stuck on a user prompt....
|
||||
|
||||
echo "--- Installing and configuring Postfix ---"
|
||||
# # Postfix Configuration: Satellite system
|
||||
|
|
|
@ -16,14 +16,15 @@ cd /var/www/MISP/PyMISP
|
|||
sudo -H -u www-data sed -i "s/LBelWqKY9SQyG0huZzAMqiEBl6FODxpgRRXMsZFu/${AUTH_KEY}/g" tests/testlive_comprehensive.py
|
||||
sudo -H -u www-data sed -i 's/http:\/\/localhost:8080/https:\/\/localhost/g' tests/testlive_comprehensive.py
|
||||
sudo -H -u www-data git clone https://github.com/viper-framework/viper-test-files tests/viper-test-files
|
||||
/var/www/MISP/venv/bin/python tests/testlive_comprehensive.py 2> /tmp/output.txt
|
||||
/var/www/MISP/venv/bin/python tests/testlive_comprehensive.py 2> /root/tests-output.txt
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
set smtp=smtp://149.13.33.5 ; cat /tmp/output.txt |mail -s "tests/testlive_comprehensive.py failed on autogen-VM" steve.clement@circl.lu
|
||||
## set smtp=smtp://149.13.33.5 ; cat /tmp/output.txt |mail -s "tests/testlive_comprehensive.py failed on autogen-VM" steve.clement@circl.lu
|
||||
echo "Damage, terrible terrible damage!!!!" >> /root/tests-output.txt
|
||||
fi
|
||||
|
||||
rm -rf tests/viper-test-files
|
||||
rm /tmp/output.txt /tmp/AUTH_KEY.txt
|
||||
##rm /tmp/output.txt /tmp/AUTH_KEY.txt
|
||||
|
||||
# End Cleaning
|
||||
echo "VM cleaned and rebooting for automagic reas0ns."
|
||||
|
|
Loading…
Reference in New Issue