From 8d791068fdee1507d7f5cfa2340d161e80014ccc Mon Sep 17 00:00:00 2001 From: ElJeffe Date: Fri, 10 Dec 2021 14:29:45 -0500 Subject: [PATCH] Attempted fix for #464 --- rootthebox.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rootthebox.py b/rootthebox.py index dc5a886c..562e07fc 100755 --- a/rootthebox.py +++ b/rootthebox.py @@ -1065,8 +1065,11 @@ def help(): if options.version: version() elif options.setup.startswith("docker"): - if not os.path.isfile(options.sql_database + ".db"): + if not os.path.isfile(options.sql_database) and not os.path.isfile( + "%s.db" % options.sql_database + ): logging.info("Running Docker Setup") + options.sql_database = "files/rootthebox.db" options.admin_ips = [] # Remove admin ips due to docker 127.0.0.1 mapping options.memcached = "memcached" options.x_headers = True