From 52252e42f5a57a56c43d8fd4c599df63df75ba0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Tue, 18 Jul 2017 08:57:39 +0200 Subject: [PATCH] Restart Apache before the update of the galaxies. --- bootstrap.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a5256d8..c5d2198 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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"