Closed nsmfoo closed 9 years ago
Seems like all you have to do is add an additional forward slash in the default path :)
I will push a fix for it
there is already a pull request https://github.com/glastopf/glastopf/pull/247
does your fix work ? doesn't end with error ? I had to do additional changes to make it work
I overlooked that one, sorry.
The fix worked as per my commit. Verified on a clean OS and Glastopf installation.
Setting the [main-database], enable = False. Gives you the following:
And the data ends up in the db/glastopf.db
fixed with #248
well, I end up with
2015-07-02 11:46:35,263 (glastopf.glastopf) Initializing Glastopf 3.1.3-dev using "/opt/glastopf" as work directory.
2015-07-02 11:46:35,317 (glastopf.glastopf) Main database has been disabled, dorks will be stored in: sqlite:///db/glastopf.db
2015-07-02 11:46:35,340 (glastopf.glastopf) Generating initial dork pages - this can take a while.
Traceback (most recent call last):
File "/usr/local/bin/glastopf-runner", line 5, in
hm, works on Ubuntu. I will look into that
yeah, it fails, only if database is set to false from the beginning
if DB is set to false after there is current_dir/glastopf.cfg , table events is already created, but remains empty, because nothing will be inserted into it
Did not try that variant. But would that not require that you have a glastopf.cfg (and the rest of the file structure) to start with. For a new installation, it is created during the first run of glastopf-runner? But maybe it's best if you push your fix for my fix anyway =)
As described in the config file, if you set main database, enable to "False", it should default to use the sqlite db, instead it borks.
If set to "True" it stores the data in the database
--- Error message
2015-06-18 23:31:38,189 (glastopf.glastopf) Main datbase has been disabled, dorks will be stored in: sqlite://db/glastopf.db
Valid SQLite URL forms are: sqlite:///:memory: (or, sqlite://) sqlite:///relative/path/to/file.db sqlite:////absolute/path/to/file.db