Skip to content

Commit

Permalink
Attempted fix for #464
Browse files Browse the repository at this point in the history
  • Loading branch information
eljeffeg committed Dec 10, 2021
1 parent e3f966b commit 8d79106
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rootthebox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d79106

Please sign in to comment.