[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Ovirt-devel] [PATCH] set RAILS_ENV for all services in common /etc/sysconfig/ovirt-rails



On Wed, Aug 6, 2008 at 9:50 AM, Steve Linabery <slinabery redhat com> wrote:
> "${RAILS_ENV:-production}"--I haven't seen that syntax before: ${FOO:-bar} What does it do?

${FOO:-bar} returns bar if FOO is unset or null.

http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02

Shameless plug to a blog entry about just that.
http://digitalprognosis.com/blog/2008/06/13/increasing-command-line-productivity-in-the-bash-shell-pt-ii/

> My main comment: is there any reason to put the appliance *partly* in test mode, *partly* in production mode?
>
> If not, could we move this to a config file which all these init scripts can source?

Seems like a good approach

-- 
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]