[Ovirt-devel] [PATCH] set RAILS_ENV for all services in common /etc/sysconfig/ovirt-rails
Jeff Schroeder
jeffschroed at gmail.com
Wed Aug 6 16:56:46 UTC 2008
On Wed, Aug 6, 2008 at 9:50 AM, Steve Linabery <slinabery at 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
More information about the ovirt-devel
mailing list