On Sat, Mar 19, 2011 at 6:49 AM, Eric <[email protected]> wrote:
> HOME is just an environment variable, so if you could find some way to set
> it to some other location just before Fossil runs ...
>
> (a wrapper for fossil, perhaps)

I had forgotten that.

Depending on your version of cron, this command should work:

su -u www-data -c 'cd /var/www/data; HOME=/some/other/dir fossil open
/repo/dir/repo.fossil'

And yes, there is no ; before the fossil command. Prefixing a command
with a variable assignment causes the command shell to export that
variable for the duration of the command (unless your version of cron
uses a limited version of the command shell).
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to