On Fri, May 9, 2014 at 9:15 AM, Scott Robison <sc...@casaderobison.com>wrote:
> links to each fossil. I have a two line fossil cgi script that gives me > access to those repos. I've even created a little page to allow me to > change a password for a single user across all repos at one time. > Would you mind sharing that one with us? > My next goal is to script the creation of a new repository. I have the > "basics" down, in that I can easily use a form to get the needed command > line parameters and run a script to create the new repo. I'd like to go a > little further with it and set the project name & description, default > permissions, and so on. > > It does not appear there is a command line based way to set certain > configuration options. I've dumped repos with "sqlite3 repo.fossil .dump" > to see how certain things work. To accomplish my goal: > > 1. Is there a fossil command line based way to set config options > (particularly project name and description) that I'm unaware of? > Not currently, resp. not that see nor remember. > 2. If there is not, is this something that could be done with the json api > via cli as it exists today? > Same there. The JSON API can set some stuff, like user properties, but doesn't (it seems) have a way to set the project name/description. If you can suggest a JSON interface for it, i can add it. 3. If the json api is not an option at present, what is the significance of > the mtime field in the config table? Must it be set to some particular > valid value or would an initial value of "0" be okay. If that is the case > (or the proper default value is easily obtained / computed) I could easily > just use a little SQL to set the needed config table values. > IIRC we don't actually use the mtime in the config file (or not often, anyway). Feel free to set it to 0 or (as we do internally): strftime('%s','now'). It's a Unix timestamp (so (date +%s) can be used from scripts). -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users