Create the first user then get the auth key.

pull/4/head
Cédric Bonhomme 2017-07-19 10:15:23 +02:00
parent 16441e0c21
commit cd389582ba
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 1 additions and 0 deletions

View File

@ -315,6 +315,7 @@ systemctl restart apache2 > /dev/null 2>&1
sleep 5
echo -e "\n--- Updating the galaxies... ---\n"
sudo -E $PATH_TO_MISP/app/Console/cake userInit -q > /dev/null
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