Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfwebui: Initialize database at web server startup (#1473)

bcolesd9556ee73ce2
diff --git a/sfwebui.py b/sfwebui.py
index bb1590ee..1a4ad6d2 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -79,7 +79,7 @@ class SpiderFootWebUi:
# 'config' supplied will be the defaults, let's supplement them
# now with any configuration which may have previously been saved.
self.defaultConfig = deepcopy(config)
- dbh = SpiderFootDb(self.defaultConfig)
+ dbh = SpiderFootDb(self.defaultConfig, init=True)
sf = SpiderFoot(self.defaultConfig)
self.config = sf.configUnserialize(dbh.configGet(), self.defaultConfig)