diff --git a/README.rst b/README.rst index d66b48a..2383e83 100644 --- a/README.rst +++ b/README.rst @@ -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 -------------------------------------- diff --git a/bootstrap.sh b/bootstrap.sh index f625564..a5256d8 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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"