mirror of https://github.com/MISP/MISP
- Added curl to update galaxies/taxonomies/warninglists/objectTemplates
parent
02a9810cc3
commit
8ae734af76
|
@ -296,6 +296,20 @@ fi
|
|||
# Set MISP Live
|
||||
sudo /var/www/MISP/app/Console/cake Live 1
|
||||
|
||||
AUTH_KEY=$(mysql -u misp -pPassword1234 misp -e "SELECT authkey FROM users;" | tail -1)
|
||||
|
||||
# Update the galaxies…
|
||||
curl --header "Authorization: $AUTH_KEY" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST http://127.0.0.1/galaxies/update
|
||||
|
||||
# Updating the taxonomies… ---"
|
||||
curl --header "Authorization: $AUTH_KEY" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST http://127.0.0.1/taxonomies/update
|
||||
|
||||
# Updating the warning lists… ---"
|
||||
curl --header "Authorization: $AUTH_KEY" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST http://127.0.0.1/warninglists/update
|
||||
|
||||
# Updating the object templates… ---"
|
||||
curl --header "Authorization: $AUTH_KEY" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST http://127.0.0.1/objectTemplates/update
|
||||
|
||||
# Enable ZeroMQ for misp-dashboard
|
||||
sudo /var/www/MISP/app/Console/cake Admin setSetting "Plugin.ZeroMQ_enable" true
|
||||
sudo /var/www/MISP/app/Console/cake Admin setSetting "Plugin.ZeroMQ_event_notifications_enable" true
|
||||
|
|
Loading…
Reference in New Issue