[tor-bugs] #14086 [Ooni]: Restructure directories where ooni software writes/reads from

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 2 17:31:38 UTC 2015


#14086: Restructure directories where ooni software writes/reads from
-------------------------+---------------------
     Reporter:  hellais  |      Owner:  hellais
         Type:  defect   |     Status:  new
     Priority:  normal   |  Milestone:
    Component:  Ooni     |    Version:
   Resolution:           |   Keywords:
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+---------------------
Description changed by hellais:

Old description:

> 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.

New description:

 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.

--

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14086#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list