Automatically update the galaxies via the API.

pull/4/head
Cédric Bonhomme 2017-07-18 08:36:19 +02:00
parent 35b179fd9c
commit ffe3f16c67
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
2 changed files with 7 additions and 4 deletions

View File

@ -5,14 +5,12 @@ This script is a work in progress!
TODO:
* automatically update the galaxies via the API;
* check the generation of the SSL certificate;
* check the configuration of postfix;
* configure redis connection;
* generate the TLS certificate with Let's Encrypt.
Installation of VirtualBox and Vagrant
--------------------------------------

View File

@ -306,8 +306,13 @@ ExecStart=/bin/sh -c 'bash $PATH_TO_MISP/app/Console/worker/start.sh'
[Install]
WantedBy=multi-user.target
EOF
systemctl enable workers.service
systemctl restart workers.service
systemctl enable workers.service > /dev/null
systemctl restart workers.service > /dev/null
echo -e "\n--- Updating the galaxies... ---\n"
AUTH_KEY=$(mysql -u $DBUSER_MISP -p$DBPASSWORD_MISP misp -e "SELECT authkey FROM users;" | tail -1)
curl -k -X POST -H "Authorization: $AUTH_KEY" -H "Accept: application/xml" -v http://127.0.0.1/galaxies/update > /dev/null
# echo -e "\n--- Enabling MISP new pub/sub feature (ZeroMQ)... ---\n"