Restructure directories where ooni software writes/reads from
Currently the data that ships with ooniprobe will be written to either /usr/share/ooni
or /path/to/virtualenv/share/ooni
if it was installed in a virtualenv. This data however also needs to be periodically updated via the ooniresources command line tool
It has been suggested by @lunar and @weasel that these are not the best locations for files that need to be updated/written by binaries.
For this reason it has been suggested to write system wide files that require updating to /var/lib/ooni
or ~/.ooni/
.
The tools that require such files should first search inside of ~/.ooni
, then /var/lib/ooni
, finally in /usr/share/ooni
. If no files are found in any of these directories it should then prompt to run the ooniresources script to fetch the files.