Redirect thehive/cortex migrate curl output to soup log

This commit is contained in:
William Wernert
2021-09-23 12:45:44 -04:00
parent b8b1867e52
commit a01d49981c

View File

@@ -704,8 +704,8 @@ thehive_maint() {
done
if [ "$THEHIVE_CONNECTED" == "yes" ]; then
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"
curl -v -k -XPOST -L "https://localhost/thehive/api/maintenance/migrate" &> "$SOUP_LOG"
curl -v -k -XPOST -L "https://localhost/cortex/api/maintenance/migrate" &> "$SOUP_LOG"
fi
}