Description: FHS support for thin config See debian/doc/examples/thin-redmine.yml Forwarded: not-needed Author: Jérémy Lal Last-Update: 2010-11-01 Index: b/config/environment.rb =================================================================== --- a/config/environment.rb 2011-03-08 10:26:57.000000000 +0100 +++ b/config/environment.rb 2011-03-08 10:26:57.000000000 +0100 @@ -6,6 +6,7 @@ # for debian package : setup proper environment variables and paths # To run redmine as unprivileged user, see /usr/share/doc/redmine/README.Debian +ObjectSpace.each_object(Thin::Runner){|x| ENV["X_DEBIAN_SITEID"] = x.options[:x_debian_siteid] if x.options[:x_debian_siteid]} if defined?(Thin) ENV['X_DEBIAN_SITEID'] ||= 'default' ENV['RAILS_ETC'] ||= "/etc/redmine/#{ENV['X_DEBIAN_SITEID']}" ENV['RAILS_LOG'] ||= "/var/log/redmine/#{ENV['X_DEBIAN_SITEID']}"