mirror of https://github.com/MISP/misp-vagrant
Automatically update the galaxies via the API.
parent
35b179fd9c
commit
ffe3f16c67
|
@ -5,14 +5,12 @@ This script is a work in progress!
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
* automatically update the galaxies via the API;
|
|
||||||
* check the generation of the SSL certificate;
|
* check the generation of the SSL certificate;
|
||||||
* check the configuration of postfix;
|
* check the configuration of postfix;
|
||||||
* configure redis connection;
|
* configure redis connection;
|
||||||
* generate the TLS certificate with Let's Encrypt.
|
* generate the TLS certificate with Let's Encrypt.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Installation of VirtualBox and Vagrant
|
Installation of VirtualBox and Vagrant
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -306,8 +306,13 @@ ExecStart=/bin/sh -c 'bash $PATH_TO_MISP/app/Console/worker/start.sh'
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl enable workers.service
|
systemctl enable workers.service > /dev/null
|
||||||
systemctl restart workers.service
|
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"
|
# echo -e "\n--- Enabling MISP new pub/sub feature (ZeroMQ)... ---\n"
|
||||||
|
|
Loading…
Reference in New Issue