mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
Add DB migration for thehive
This commit is contained in:
@@ -340,6 +340,12 @@ space_check() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
thehive_maint() {
|
||||||
|
echo "Migrating thehive databases if needed."
|
||||||
|
curl -v -k -XPOST -L "https://localhost/thehive/api/maintenance/migrate"
|
||||||
|
curl -v -k -XPOST -L "https://localhost/cortex/api/maintenance/migrate"
|
||||||
|
}
|
||||||
|
|
||||||
unmount_update() {
|
unmount_update() {
|
||||||
cd /tmp
|
cd /tmp
|
||||||
umount /tmp/soagupdate
|
umount /tmp/soagupdate
|
||||||
@@ -602,6 +608,7 @@ echo "Running a highstate. This could take several minutes."
|
|||||||
salt-call state.highstate -l info queue=True
|
salt-call state.highstate -l info queue=True
|
||||||
playbook
|
playbook
|
||||||
unmount_update
|
unmount_update
|
||||||
|
thehive_maint
|
||||||
|
|
||||||
if [ "$UPGRADESALT" == "1" ]; then
|
if [ "$UPGRADESALT" == "1" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user