Restart Apache before the update of the galaxies.

pull/4/head
Cédric Bonhomme 2017-07-18 08:57:39 +02:00
parent ffe3f16c67
commit 52252e42f5
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 5 additions and 5 deletions

View File

@ -310,9 +310,13 @@ systemctl enable workers.service > /dev/null
systemctl restart workers.service > /dev/null
echo -e "\n--- Restarting Apache ---\n"
systemctl restart apache2 > /dev/null 2>&1
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
curl -k -X POST -H "Authorization: $AUTH_KEY" -H "Accept: application/xml" -v http://127.0.0.1/galaxies/update > /dev/null 2>&1
# echo -e "\n--- Enabling MISP new pub/sub feature (ZeroMQ)... ---\n"
@ -343,10 +347,6 @@ curl -k -X POST -H "Authorization: $AUTH_KEY" -H "Accept: application/xml" -v ht
# pip install pyzmq > /dev/null 2>&1
echo -e "\n--- Restarting Apache ---\n"
systemctl restart apache2 > /dev/null 2>&1
echo -e "\n--- MISP is ready! ---\n"
echo -e "\n--- Point your Web browser to http://127.0.0.1:5000 ---\n"
echo -e "\n--- Default user/pass = admin@admin.test/admin ---\n"