Make riak keep data and logs under /usr/local/var subfolders

This change alters default riak configuration, so it will keep data in /usr/local/var/lib/riak and logs in /usr/local/var/log/riak. With this setup, your data will survive when installing new version of riak.

I also managed to simplify whole cellar structure, just by changing RIAK_BASE_DIR in env.sh

Thanks for review Jack,

I hope my next pull request will be more in line with your coding style.

Regards
Tom

On 3 Jul 2014, at 04:40, Jack Nagel <notifications@github.com> wrote:

> In Library/Formula/riak.rb:
> 
> >      inreplace "#{libexec}/lib/env.sh" do |s|
> >        s.change_make_var! "RUNNER_BASE_DIR", libexec
> > +      s.change_make_var! "RUNNER_LOG_DIR", logdir
> > +    end
> > +    unless build.devel?
> Don't use unless...else, either use if build.devel? and switch the order of the branches or use if build.stable? here.
> 
> —
> Reply to this email directly or view it on GitHub.
>